PZijlstra wrote
All of a sudden, i get an error in my filemanager
An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.Permissions.Controls.FolderPermissionsGrid.SaveViewState() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Page.SavePageViewState() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---
What is wrong here, and what can i do to resolve this problem?
I would like to comment on this error.
IF you see this error it is very unlikely that it is actually caused by the Permissions Grid itself. This error is most likely caused by an earlier error in the Page_Load method of the File Manager. At the end of the Page Load method is the following block of code:
If LastFolderPath <> DestPath Then
PageIndex = 0
GeneratePermissionsGrid()
End If
LastFolderPath = DestPath
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
The two important lines are in red. IF an error happens in Page Load before the first red line, then the code will be trapped by the Catch block, and the permissions grid will NEVER be initialised.
So if you see this error - it is 99% certain that you have an exception in Page_load, which may occur for a number of reasons (mostly poor synchronisation between File System and Database), but in 4.3.6 we have made an effort to fix most of these issues.