This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
Hello!
I seem to be having an issue, it might be related to the fact that I've changed the authentication method a few times from Windows to Forms (trying to get "automatic login" to work but having problems, I'll handle it seperately from this thread though).
Right now, if I try to remove a user from the Administrators role, I get the following error:
Server Error in '/' 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: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidCastException: Specified cast is not valid.] mojoPortal.Web.AdminUI.SecurityRoles.usersInRole_ItemCommand(Object sender, DataListCommandEventArgs e) +69 System.Web.UI.WebControls.DataList.OnItemCommand(DataListCommandEventArgs e) +108 System.Web.UI.WebControls.DataList.OnBubbleEvent(Object source, EventArgs e) +73 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.DataListItem.OnBubbleEvent(Object source, EventArgs e) +123 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Server Error in '/' 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Specified cast is not valid.] mojoPortal.Web.AdminUI.SecurityRoles.usersInRole_ItemCommand(Object sender, DataListCommandEventArgs e) +69 System.Web.UI.WebControls.DataList.OnItemCommand(DataListCommandEventArgs e) +108 System.Web.UI.WebControls.DataList.OnBubbleEvent(Object source, EventArgs e) +73 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.DataListItem.OnBubbleEvent(Object source, EventArgs e) +123 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
This also happens if I delete the role from the user itself in the Members list.
I cannot replicate this problem using MS SQL, what db platform are you using?
Oh sorry,
SQLite.
I opened the database using "SQLite Expert Personal" and manually deleted them for the moment.
I just tried re-adding a user to the Administrators role and then deleting it, it did it again. Keep in mind that I have "LDAP Authentication" enabled on the domain, I don't know if that changes anything (I also cannot "Delete" users, so maybe that's related?).
Ok, I was able to replicate the problem using SQLite. I have fixed it in my copy so it will be fixed in the next release.
Best,
Joe
Great support, that`s what I'm talking about! I'll look forward to the bug fix.
-Eric.
If you are working with the source code, its fixed in svn trunk now. Just do svn Update, then rebuild then visit /Setup/Default.aspx
Thanks for the bug report!
Cheers,