problema Asp.Net com% 22 "caracteres ilegais no caminho."


Citação codificado (% 22) no caminho url faz com que caracteres ilegais no caminho de erro

[ArgumentException: Illegal characters in path.]

System.IO.Path.LegacyNormalizePath (String caminho, booleano fullCheck, Int32 maxPathLength, expandShortPaths booleanas) 14593253 System.IO.Path.GetFullPathInternal (String caminho) 132 System.Security.Util.StringExpressionSet.CanonicalizePath (String caminho, booleano needFullPath ) +115 System.Security.Util.StringExpressionSet.CreateListFromExpressions (string [] str, booleano needFullPath) 265 \

Erro na linha de retorno

        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 (acesso FileIOPermissionAccess, controlo AccessControlActions, String [] pathListOrig, booleanas checkForDuplicates, booleano needFullPath, booleano copyPathList) 151 System.Security.Permissions.FileIOPermission..ctor (acesso FileIOPermissionAccess, String caminho) + 90 System.Web.InternalSecurityPermissions.PathDiscovery (string caminho) 40 System.Web.HttpRequest.get_PhysicalPath () 51 UrlRewritingNet.Web.UrlRewriteModule.OnBeginRequest (objecto remetente, EventArgs e) 80 System.Web.SyncEventExecutionStep.System.Web .HttpApplication.IExecutionStep.Execute () 136 System.Web.HttpApplication.ExecuteStepImpl (passo IExecutionStep) 195 System.Web.HttpApplication.ExecuteStep (IExecutionStep passo, booleano & completedSynchronously) 88

Publicado 08/11/2018 em 06:37
fonte usuário
Em outras línguas...                            

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more