Server Error in '/' 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 207:                    ctx.Dispose();
Line 208:                    ctx = null;
Line 209:                    _fileAbsolutePath = Server.MapPath("/user_files/ALLEGA/" + res);
Line 210:                    return _fileAbsolutePath;
Line 211:                }

Source File: c:\inetpub\Effecinque\www.claudiobisio.it\FileProvider.aspx.cs    Line: 209

Stack Trace:


[NotSupportedException: The given path's format is not supported.]
   System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +14446491
   System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +316
   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +121
   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) +94
   System.Web.InternalSecurityPermissions.PathDiscovery(String path) +42
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +180
   System.Web.HttpServerUtility.MapPath(String path) +130
   FileProvider.get_FileAbsolutePath() in c:\inetpub\Effecinque\www.claudiobisio.it\FileProvider.aspx.cs:209
   FileProvider.Serve() in c:\inetpub\Effecinque\www.claudiobisio.it\FileProvider.aspx.cs:255
   FileProvider.Page_Load(Object sender, EventArgs e) in c:\inetpub\Effecinque\www.claudiobisio.it\FileProvider.aspx.cs:319
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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