Server Error in '/site' Application.

The given path's format is not supported.

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.NotSupportedException: The given path's format is not supported.

Source Error:


Line 44:                     TEMPLATE_PAGE = TEMPLATE_PAGE + "?lang=" + lang + "&PARENTID=" + PARENT_ID + "&PageId=" + PageId;
Line 45:                     if (TEMPLATE_PAGE == "") TEMPLATE_PAGE = "#";
Line 46:                     Server.Execute("../" + TEMPLATE_PAGE);
Line 47:                 }
Line 48:             }

Source File: d:\SITE_WWWROOT\site\Rewrite\more.aspx.cs    Line: 46

Stack Trace:


[NotSupportedException: The given path's format is not supported.]
   System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +13007535
   System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +245
   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +89
   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) +63
   System.Web.InternalSecurityPermissions.PathDiscovery(String path) +32
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +149
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath) +33
   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +213
   System.Web.HttpServerUtility.Execute(String path) +13
   more.Page_Load(Object sender, EventArgs e) in d:\SITE_WWWROOT\site\Rewrite\more.aspx.cs:46
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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