Hi,
I have a curious problem when managing roles within site admin.
The error - as pasted below - occurs each time I go into site admin to edit a role in "manage roles" and then try and expand part of the album hierarchy.
Funny thing is, the error only occurs on a number of folders in the hierarchy.
I have the following hierarchy:
All Albums
--> 2007
-> subfolder
-> subfolder
--> 2008
-> subfolder
-> subfolder
--> 2009
-> subfolder
-> subfolder
--> 2010
-> subfolder
-> subfolder
Now, when I try to expand folders 2007, 2008 and 2009 it works fine and I get to see the subfolders. Howerver, when I try to expand folder 2010, I get the error message as listed below.
The underlying folder structure on the harddisk is exactly the same for all folders (incl. security settings).
Anyone have any clue what is causing this issue?
Regards,
Peter
Server Error in '/GalleryServerPro' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.]
GalleryServerPro.Web.Util.GetHostUrl() +51
GalleryServerPro.Web.Controller.GalleryController.GetGpsMapUrl(IGalleryObject galleryObject, String latitude, String longitude, String gpsLocation) +257
GalleryServerPro.Web.Controller.GalleryController.AddGpsLocationWithMapLink(IGalleryObject galleryObject, IMetadataDefinitionCollection metadataDisplaySettings) +391
GalleryServerPro.Web.Controller.GalleryController.GalleryObjectMetadataLoaded(Object sender, EventArgs e) +97
GalleryServerPro.Business.GalleryObject.set_IsMetadataLoaded(Boolean value) +72
GalleryServerPro.Business.Factory.AddMediaObjectMetadata(IGalleryObject go) +711
GalleryServerPro.Business.Factory.LoadMediaObjectInstance(IDataRecord dr, IAlbum parentAlbum) +7887
GalleryServerPro.Business.Factory.AddChildObjects(IAlbum album) +458
GalleryServerPro.Business.Factory.LoadAlbumInstance(IAlbum album, Boolean inflateChildMediaObjects) +485
GalleryServerPro.Business.Album.GetChildGalleryObjects() +17
GalleryServerPro.Business.Album.GetChildGalleryObjects(Boolean sortBySequence, Boolean excludePrivateObjects) +32
GalleryServerPro.Business.Album.GetChildGalleryObjects(GalleryObjectType galleryObjectType, Boolean sortBySequence, Boolean excludePrivateObjects) +67
GalleryServerPro.Web.Handler.gettreeviewxml.GenerateTreeview() +1085
GalleryServerPro.Web.Handler.gettreeviewxml.ProcessRequest(HttpContext context) +83
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +598
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170
Version Information: Microsoft .NET Framework Version:2.0.50727.5444; ASP.NET Version:2.0.50727.5420