Bug #44619 Roles Saved in DB but Can Not Be Managed Using Web UI
Submitted: 1 May 2009 22:46 Modified: 4 May 2009 8:34
Reporter: Chris Pels Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:6.0.3.0 OS:Windows
Assigned to: CPU Architecture:Any
Tags: .net, ADO.NET, asp.net

[1 May 2009 22:46] Chris Pels
Description:
Installed the MySQL .NET connector (6.0.3.0) and configured the membership and role providers. Then used Website/ASP.NET Configuration/Security w/ Visual Studio 2008 to add a role. The role is successfully added to the DB, but when the Manage link is selected the following error is displayed.

Object reference not set to an instance of an object. at System.Web.Administration.WebAdminPage.CallWebAdminHelperMethod(Boolean isMembership, String methodName, Object[] parameters, Type[] paramTypes) at ASP.security_roles_managesinglerole_aspx.Page_Load() at System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

When users are added the role(s) are not available for assignment. Also, when the Manage Roles link is selected the previously entered roles are not listed. However, there is no error message.

How to repeat:
1. Install the MySQL .NET connector (6.0.3.0).
2. Create a website in VS 2008.
3. Add the connectionstring, membership, and role provider information in the web.config file.
4. Use Website/ASP.NET Configuration to display the web based managment page.
5. Select Security.
6. Select Create or Manage Roles.
7. Add a new role.
8. Select Manage Role for the newly added role.
Error above is displayed.

Suggested fix:
None
[1 May 2009 23:34] Chris Pels
FYI, I am using this connector w/ MySQL 5.4. Is this only for MySQL 6?
[3 May 2009 10:50] Nalle Jacobsson
I guess this is a duplicate of Bug #44414 ?
[3 May 2009 20:36] Chris Pels
From what I see #44414 is something different.
[3 May 2009 20:44] Chris Pels
Whoops. Went to the wrong bug report. Yes, that is the same bug.
[4 May 2009 1:25] Matt Crook
Object reference not set to an instance of an object. at System.Web.Administration.WebAdminPage.CallWebAdminHelperMethod(Boolean isMembership, String methodName, Object[] parameters, Type[] paramTypes) at ASP.security_roles_managesinglerole_aspx.Page_Load() at System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Im getting this error too... i think after i upgraded from 6.0.2
might try to go back.
[4 May 2009 8:34] Tonci Grgin
Hi Chris and thanks for your report. Yes it is a duplicate of Bug#44414 and we can continue discussion there.