Server Error in '/' Application.

VirtualPath must be a non-empty string starting with ~/.
Parameter name: virtualPath

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.ArgumentException: VirtualPath must be a non-empty string starting with ~/.
Parameter name: virtualPath

Source Error:


Line 142:
Line 143:        
Line 144:        routeCollection.MapPageRoute("Get Category", "Get/{category}", "/Products/Default.aspx");
Line 145:
Line 146:        routeCollection.MapPageRoute("Product Details", "Details/{name}/{no}", "~/new_details.aspx"); // new details page

Source File: c:\Home\Equibrand Retail Site\Global.asax    Line: 144

Stack Trace:


[ArgumentException: VirtualPath must be a non-empty string starting with ~/.
Parameter name: virtualPath]
   System.Web.Routing.PageRouteHandler..ctor(String virtualPath, Boolean checkPhysicalUrlAccess) +4366219
   System.Web.Routing.RouteCollection.MapPageRoute(String routeName, String routeUrl, String physicalFile, Boolean checkPhysicalUrlAccess, RouteValueDictionary defaults, RouteValueDictionary constraints, RouteValueDictionary dataTokens) +101
   System.Web.Routing.RouteCollection.MapPageRoute(String routeName, String routeUrl, String physicalFile) +41
   ASP.global_asax.RoutingData(RouteCollection routeCollection) in c:\Home\Equibrand Retail Site\Global.asax:144
   ASP.global_asax.Application_Start(Object sender, EventArgs e) in c:\Home\Equibrand Retail Site\Global.asax:190

[HttpException (0x80004005): VirtualPath must be a non-empty string starting with ~/.
Parameter name: virtualPath]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +546
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +171
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +255
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +347

[HttpException (0x80004005): VirtualPath must be a non-empty string starting with ~/.
Parameter name: virtualPath]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737


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