Server Error in '/' Application.

Value cannot be null.
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.ArgumentNullException: Value cannot be null.
Parameter name: virtualPath

Source Error:


Line 12:     {
Line 13:         if (!string.IsNullOrEmpty(Temp[0].Trim()))
Line 14:             Context.RewritePath(Temp[0] + ".aspx");
Line 15:     }
Line 16:     /* // This is for HTML page

Source File: d:\inetpub\vhosts\justquery.in\justquery.in\Global.asax    Line: 14

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: virtualPath]
   System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +10044004
   System.Web.HttpContext.RewritePath(String path, Boolean rebaseClientPath) +102
   System.Web.HttpContext.RewritePath(String path) +12
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in d:\inetpub\vhosts\justquery.in\justquery.in\Global.asax:14
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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