URL路径中的编码引号(%22)导致路径错误的非法字符
[ArgumentException: Illegal characters in path.]
System.IO.Path.LegacyNormalizePath(字符串路径,布尔fullCheck,Int32 maxPathLength,布尔expandShortPaths)+14593253 System.IO.Path.GetFullPathInternal(字符串路径)+132 System.Security.Util.StringExpressionSet.CanonicalizePath(字符串路径,布尔型NeedFullPath)+115 System.Security.Util.StringExpressionSet.CreateListFromExpressions(String [] str,布尔NeedFullPath)+265 \
返回线错误
internal static bool IsClientSideRequest(this Uri url)
{
var toIgnore = new[] { ".js", ".css", ".ico", ".png", ".jpg", ".jpeg", ".gif", ".html", ".svg" };
return toIgnore.Any(x => Path.GetExtension(url.LocalPath).InvariantEquals(x));
}
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess访问,AccessControlActions控件,String [] pathListOrig,布尔值checkForDuplicates,布尔值NeedFullPath,布尔值copyPathList)+151 System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess访问,字符串路径)+90 System.Web.InternalSecurityPermissions.PathDiscovery(字符串路径)+40 System.Web.HttpRequest.get_PhysicalPath()+51 UrlRewritingNet.Web.UrlRewriteModule.OnBeginRequest(Object sender,EventArgs e)+80 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+136 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep步骤)+195 System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值并已完成同步)+88