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 55:             Dim mainis As String
Line 56:             mainis = rw.GetmainByvirtual(replacingString)
Line 57:             Context.RewritePath(pathis.Replace(replacingString, mainis))
Line 58:         End If
Line 59:         If pathis.Contains("/product/") Then

Source File: D:\HostingSpaces\bazrsara.ir\httpdocs\global.asax    Line: 57

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: virtualPath]
   System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +10046464
   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:\HostingSpaces\bazrsara.ir\httpdocs\global.asax:57
   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.4700.0