|
|
Posted 16/07/2006 21:10:43 |
|
|
Supreme Being
      
Group: Customers
Last Login: 22/09/2008 15:59:25
Posts: 693,
Visits: 2,418
|
|
| I'm getting an error when trying to go into the "Manage Member Groups" page within the Admin CP. I will post the actual error after I explain this further. 1. I installed the 4.1.4 beta (1 and 2). These were fresh installs & they work fine. 2. I ran the sql db update script 4.1.3 to 4.14. Completes fine. 3. Change the connection string in the newly installed forums and it successfully runs with "my" database. 4. However : There is a "role / group" problem. The "Manage Member Groups" page within the Admin CP throws the following error, when using database which was updatedby the script. This page works fine with the freshly installed 4.1.4. beta db. URL: http://localhost/InstantForum414/Admin/AdminEditUserRoles.aspx?PageIndex=1
NET Runtime version: 1.1.4322.2032 Application Domain: /LM/W3SVC/1/Root/InstantForum414-8-127975966391250000 Assembly Codebase: C:/Inetpub/wwwroot/InstantForum414/bin/InstantASP.InstantForum.UI.DLL Assembly Full Name: InstantASP.InstantForum.UI, Version=4.1.4.0, Culture=neutral, PublicKeyToken=null Assembly Version: 4.1.4.0 Assembly Build Date: 7/16/2006 9:57:19 PM
Exception Type: System.NullReferenceException Exception Message: Object reference not set to an instance of an object. Exception Source: InstantASP.InstantForum.UI Exception Target Site: ctlUserRoles_OnItemDataBound
---- Stack Trace ---- InstantASP.InstantForum.UI.Controls.AdminEditUserRoles.ctlUserRoles_OnItemDataBound(Sender As Object, e As DataGridItemEventArgs) (unknown file): N 01908 System.Web.UI.WebControls.DataGrid.OnItemDataBound(e As DataGridItemEventArgs) (unknown file): N 00110 System.Web.UI.WebControls.DataGrid.CreateItem(itemIndex As Int32, dataSourceIndex As Int32, itemType As ListItemType, dataBind As Boolean, dataItem As Object, columns As DataGridColumn[], rows As TableRowCollection, pagedDataSource As PagedDataSource) (unknown file): N 00181 System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(useDataSource As Boolean) (unknown file): N 01408 System.Web.UI.WebControls.BaseDataList.OnDataBinding(e As EventArgs) (unknown file): N 00049 System.Web.UI.WebControls.BaseDataList.DataBind() (unknown file): N 00023 InstantASP.InstantForum.UI.Controls.AdminEditUserRoles.BindData() (unknown file): N 00334 InstantASP.InstantForum.UI.Controls.AdminEditUserRoles.Initialize(ctlSkin As Control) (unknown file): N 01617 InstantASP.Common.UI.Base.Skin.CreateChildControls() (unknown file): N 00071 InstantASP.InstantForum.UI.Skinning.Base.CreateChildControls() (unknown file): N 00075 System.Web.UI.Control.EnsureChildControls() (unknown file): N 00100 System.Web.UI.Control.PreRenderRecursiveInternal() (unknown file): N 00038 System.Web.UI.Control.PreRenderRecursiveInternal() (unknown file): N 00125 System.Web.UI.Control.PreRenderRecursiveInternal() (unknown file): N 00125 System.Web.UI.Control.PreRenderRecursiveInternal() (unknown file): N 00125 System.Web.UI.Control.PreRenderRecursiveInternal() (unknown file): N 001252 System.Web.UI.Page.ProcessRequestMain() (unknown file): N 01499
---- Collections ----
QueryString
PageIndex 1
Cookies
IF_LastVisit 7%2f16%2f2006+9%3a57%3a20+PM SkinID 1 IF_ForumsRead2 2%7c7%2f12%2f2006+8%3a25%3a15+AM IF_TopicsRead1 1%7c7%2f8%2f2006+3%3a02%3a00+PM IF_InstantASP_PanelBar_Expandeda_ctlAdminNavBarHome,a_ctlAdminNavBarManagePermissionSet,a_ctlAdminNavBarManageForums IF_InstantASP_PanelBar_Collaspsed IF_ForumsRead1 1%7c7%2f12%2f2006+8%3a26%3a12+AM IF_TopicsRead2961 2961%7c7%2f12%2f2006+8%3a26%3a12+AM IF_TopicsRead5372 5372%7c7%2f12%2f2006+8%3a25%3a15+AM IF_ForumMarkedAsRead64 2006-07-11T09%3a12%3a44 IF_TopicsRead5371 5371%7c7%2f11%2f2006+4%3a06%3a59+PM IF_TopicsRead5103 5103%7c7%2f11%2f2006+4%3a07%3a02+PM IF_TopicsRead5102 5102%7c7%2f11%2f2006+4%3a07%3a05+PM IF_TopicsRead5101 5101%7c7%2f11%2f2006+4%3a07%3a06+PM IF_TopicsRead5100 5100%7c7%2f11%2f2006+4%3a07%3a07+PM IASP_IsActive True ASP.NET_SessionId xv5erb55vrplvd45g1yevc45
ServerVariables
APPL_MD_PATH /LM/W3SVC/1/Root/InstantForum414 APPL_PHYSICAL_PATH C:\Inetpub\wwwroot\InstantForum414\ AUTH_TYPE InstantASP AUTH_USER myemailaddress REMOTE_USER myemailaddress CONTENT_LENGTH 0 GATEWAY_INTERFACE CGI/1.1 HTTPS off INSTANCE_ID 1 INSTANCE_META_PATH /LM/W3SVC/1 LOCAL_ADDR 127.0.0.1 PATH_INFO /InstantForum414/Admin/AdminEditUserRoles.aspx PATH_TRANSLATED C:\Inetpub\wwwroot\InstantForum414\Admin\AdminEditUserRoles.aspx QUERY_STRING PageIndex=1 REMOTE_ADDR 127.0.0.1 REMOTE_HOST 127.0.0.1 REMOTE_PORT 1390 REQUEST_METHOD GET SCRIPT_NAME /InstantForum414/Admin/AdminEditUserRoles.aspx SERVER_NAME localhost SERVER_PORT 80 SERVER_PORT_SECURE 0 SERVER_PROTOCOL HTTP/1.1 SERVER_SOFTWARE Microsoft-IIS/5.1 URL /InstantForum414/Admin/AdminEditUserRoles.aspx HTTP_CONNECTION Keep-Alive HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, */* HTTP_ACCEPT_ENCODING gzip, deflate HTTP_ACCEPT_LANGUAGE en-us HTTP_HOST localhost HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727) HTTP________ ----:------------------------------------------------------
..:: Bare ::.. http://www.livingformetal.com
|
|
|
|
Posted 19/07/2006 03:10:26 |
|
|
Forum Member
      
Group: Forum Members
Last Login: 03/07/2007 14:57:02
Posts: 56,
Visits: 195
|
|
I am having the same problem on an upgraded version, my error message is the same as Bare's -the difference being I am on ASP.NET 2:
NET Runtime version: 2.0.50727.42 Application Domain: /LM/W3SVC/5/Root/forums-2-127977729597618109 Assembly Codebase: [hidden]forums/bin/InstantASP.InstantForum.UI.DLL Assembly Full Name: InstantASP.InstantForum.UI, Version=4.1.4.0, Culture=neutral, PublicKeyToken=null Assembly Version: 4.1.4.0 Assembly Build Date: 7/19/2006 4:56:00 AM
Exception Type: System.NullReferenceException Exception Message: Object reference not set to an instance of an object. Exception Source: InstantASP.InstantForum.UI Exception Target Site: ctlUserRoles_OnItemDataBound
Cristiano Diaz SLuniverse.com
|
|
|
|
Posted 19/07/2006 09:28:40 |
|
|
Supreme Being
      
Group: Customers
Last Login: 22/09/2008 15:59:25
Posts: 693,
Visits: 2,418
|
|
Thanks for the confirmation, Christiano  Here is something that is probably related. From within my own web application, the following code no longer works. It doesn't throw an exception, but it just doesn't return "true" if it is in fact "true". If System.Web.HttpContext.Current.User.IsInRole("Administrators")
..:: Bare ::.. http://www.livingformetal.com
|
|
|
|
Posted 19/07/2006 10:11:02 |
|
|
IF.NET 4.2 Coming Soon
      
Group: Administrators
Last Login: Yesterday @ 16:29:04
Posts: 1,956,
Visits: 3,018
|
|
| Hi All, Sorry to hear your having some problems. The AdminEditUserRoles.ascx file has changed with 4.1.4 to now support paging. You will need to ensure you update this file with the latest version from the InstantForum.NET v4.1.4 beta. I've included a list below of modified files you will need to use within any existing v4.1.x skins if you install v4.1.4. Updated Files \Skins\[SKINNAME]\Controls\MainNavigation.ascx \Skins\[SKINNAME]\Controls\SearchResultsPostView.ascx \Skins\[SKINNAME]\Admin\AdminEditUserRoles.ascx \Skins\[SKINNAME]\Controls\SearchOptions.ascx \Globalization\en-US\Resources.xml \Configuration\CacheDurations.xml New Files \Moderation.aspx \Skins\[SKINNAME]\Moderation.ascx \Skins\[SKINNAME]\Controls\ModerationSearchOptions.ascx Please try replacing the AdminEditUserRoles.ascx file with the latest version from the v4.1.4 beta. This should resolve the problem. Please let me know.
 Kindest Regards,
Ryan Healey Director / Developer
Explore our products... http://demos.instantasp.co.uk/
|
|
|
|
Posted 19/07/2006 10:20:44 |
|
|
Supreme Being
      
Group: Customers
Last Login: 22/09/2008 15:59:25
Posts: 693,
Visits: 2,418
|
|
| Ryan, I can reproduce the error on a fresh 4.1.4 beta install, with all new files. All I have to do is run the "4.1.3 to 4.1.4" db script on my database & then point the new "fresh" 4.1.4 beta install to that database... and then the error occurs. 1. In this case, the error does occur with the default "Classic" skin 2. All the skins that I have.. I first "created" from the 4.1.4 beta AdminCP and then modified them, so they should be current as well.
..:: Bare ::.. http://www.livingformetal.com
|
|
|
|
Posted 19/07/2006 10:22:32 |
|
|
IF.NET 4.2 Coming Soon
      
Group: Administrators
Last Login: Yesterday @ 16:29:04
Posts: 1,956,
Visits: 3,018
|
|
Bare (7/19/2006)
Thanks for the confirmation, Christiano Here is something that is probably related. From within my own web application, the following code no longer works. It doesn't throw an exception, but it just doesn't return "true" if it is in fact "true". If System.Web.HttpContext.Current.User.IsInRole("Administrators") Hi Bare, Thats correct this has changed. Roles are no longer stored in UserData section of the forms authentication ticket. This caused problems if you had lots of roles associated with your account. Cookies have a limit on the number of characters they can hold. .NET v2.0 addresses this issue with role caching however we can't take full advantage of this whilst we continue to support .NET v1.1. All roles are held within the UserRolesCollection which is part of the InstantASP.Common.Components.User object. You can perform a similar check with the following code... If Not MyBase.CurrentContext.CurrentUser.UserRolesCollection.FindRole("Administrators") Is Nothing Then End If This will return Nothing if the user is not part of the Administrator role. Otherwise it will return the InstantASP.Common.Components.UserRole object representing the administrator role. We will be looking at still providing support for System.Web.HttpContext.Current.User.IsInRole("Administrators") however this will require some tweaks to the InstantASP.Common.HttpModule.SecurityModule, AuthenticateRequest method which unfortunately won't will be implemented for v4.1.4 final. I hope this helps,
 Kindest Regards,
Ryan Healey Director / Developer
Explore our products... http://demos.instantasp.co.uk/
|
|
|
|
Posted 19/07/2006 11:55:04 |
|
|
Supreme Being
      
Group: Customers
Last Login: 22/09/2008 15:59:25
Posts: 693,
Visits: 2,418
|
|
If Not MyBase.CurrentContext.CurrentUser.UserRolesCollection.FindRole("Administrators") Is Nothing Then Ok, got that part working... However: The exception on the Manage Groups page is still an issue.
..:: Bare ::.. http://www.livingformetal.com
|
|
|
|
Posted 24/07/2006 08:38:54 |
|
|
IF.NET 4.2 Coming Soon
      
Group: Administrators
Last Login: Yesterday @ 16:29:04
Posts: 1,956,
Visits: 3,018
|
|
Bare (7/19/2006)
If Not MyBase.CurrentContext.CurrentUser.UserRolesCollection.FindRole("Administrators") Is Nothing Then Ok, got that part working... However: The exception on the Manage Groups page is still an issue. Did i keep you posted on this Bare. I performed a v4.1.2 install and upgraded to v4.1.4 and was not able to replicate the exception. Also on a fresh install this appears to be working correctly. Your obviously having an issue. I'll contact you on MSN so we can work through this.
 Kindest Regards,
Ryan Healey Director / Developer
Explore our products... http://demos.instantasp.co.uk/
|
|
|
| | |