Error adding new administrator!?

Jul 23, 2008 at 4:05 PM
<title>Specified cast is not valid.</title> <style> BODY { FONT-WEIGHT: normal; FONT-SIZE: 0.7em; COLOR: black; FONT-FAMILY: "Verdana" } P { MARGIN-TOP: -5px; FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: "Verdana" } B { MARGIN-TOP: -5px; FONT-WEIGHT: bold; COLOR: black; FONT-FAMILY: "Verdana" } H1 { FONT-WEIGHT: normal; FONT-SIZE: 18pt; COLOR: red; FONT-FAMILY: "Verdana" } H2 { FONT-WEIGHT: normal; FONT-SIZE: 14pt; COLOR: maroon; FONT-FAMILY: "Verdana" } PRE { FONT-SIZE: 0.9em; FONT-FAMILY: "Lucida Console" } .marker { FONT-WEIGHT: bold; COLOR: black; TEXT-DECORATION: none } .version { COLOR: gray } .error { MARGIN-BOTTOM: 10px } .expandable { FONT-WEIGHT: bold; CURSOR: hand; COLOR: navy; TEXT-DECORATION: underline } </style>

This is driving me nuts and dunno what to do pls help if anyone can?

Server Error in '/Blog' Application.

Specified cast is not valid.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

Source Error:

Line 210:		{
Line 211:			if (!Roles.IsUserInRole(_userName, _roleToUse))
Line 212:				Roles.AddUserToRole(_userName, _roleToUse);
Line 213:		}
Line 214:		Response.Redirect("Users.aspx", true);

Source File: c:\Inetpub\wwwroot\Blog\admin\Pages\Users.aspx.cs    Line: 212

Stack Trace:

[InvalidCastException: Specified cast is not valid.]
   BlogEngine.Core.Providers.DbRoleProvider.AddUsersToRoles(String[] usernames, String[] roleNames) +398
   System.Web.Security.Roles.AddUserToRole(String username, String roleName) +341
   admin_newuser.cb_CheckedChanged(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Blog\admin\Pages\Users.aspx.cs:212
   System.Web.UI.WebControls.CheckBox.OnCheckedChanged(EventArgs e) +105
   System.Web.UI.WebControls.CheckBox.RaisePostDataChangedEvent() +134
   System.Web.UI.WebControls.CheckBox.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +7
   System.Web.UI.Page.RaiseChangedEvents() +117
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1646


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
<!-- [InvalidCastException]: Specified cast is not valid. at BlogEngine.Core.Providers.DbRoleProvider.AddUsersToRoles(String[] usernames, String[] roleNames) at System.Web.Security.Roles.AddUserToRole(String username, String roleName) at admin_newuser.cb_CheckedChanged(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Blog\admin\Pages\Users.aspx.cs:line 212 at System.Web.UI.WebControls.CheckBox.OnCheckedChanged(EventArgs e) at System.Web.UI.WebControls.CheckBox.RaisePostDataChangedEvent() at System.Web.UI.WebControls.CheckBox.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() at System.Web.UI.Page.RaiseChangedEvents() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.admin_pages_users_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blog\c9137847\22f86953\App_Web_pxb1hctt.8.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->