Error executing child request for ~/viewPicture.aspx

I got the error message listed below and this was because the Windows ACL and permission system prevented it from writing to ngallery.xml. nGallery is updating information about the number of times a picture is viewed in this file.

Also the photos directory needs to be writable to produce cached versions of the pictures.

Error message:
Server Error in '/ngallery' Application. ________________________________________Error executing child request for ~/viewPicture.aspx. 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.Web.HttpException: Error executing child request for ~/viewPicture.aspx.

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:

[HttpException (0x80004005): Error executing child request for ~/viewPicture.aspx.]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1788
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +24
System.Web.HttpServerUtility.Transfer(String path) +27
nGallery.Lib.AlbumRequestHandler.ProcessRequest(HttpContext context) +1569
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

________________________________________
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

About

Professional 2.0 .NET is intended to get the like minded professionals using Web 2.0 tools in their profession to manage and work efficiently.