Server Error in '/' 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:


Line 29:         }
Line 30: 
Line 31:         return new WebPageHttpHandler((WebPage)WebPage.CreateInstanceFromVirtualPath(this._virtualPath));
Line 32:     }
Line 33: }

Source File: e:\www2016des\App_Code\WebPageRouteHandler.cs    Line: 31

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   System.Web.WebPages.WebPageBase.CreateInstanceFromVirtualPath(String virtualPath, IVirtualPathFactory virtualPathFactory) +54
   WebPageRouteHandler.GetHttpHandler(RequestContext requestContext) in e:\www2016des\App_Code\WebPageRouteHandler.cs:31
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +11833609
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0