ASP.NET的url MAX_PATH限制 [英] ASP.NET url MAX_PATH limit

查看:115
本文介绍了ASP.NET的url MAX_PATH限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到了ASP.NET的一个问题,我至少还知道难倒了另外一个人那里。我们试图使用一个HttpModule来处理通配符
请求到Web应用程序。生成的URL是动态的,可以
可能是几个长一百个字符。不幸的
似乎是在该限制ASPNET_ISAPI.DLL文件的限制
在URL中的MAX_PATH路径的长度,这是很难$ C $音像
260个字符。

I've found an issue with ASP.NET that I know at least has stumped one other person out there. We were trying to use an HttpModule to handle wildcard requests to a web application. The generated url is dynamic and could potentially be several hundred characters long. Unfortunately there appears to be a limitation in the aspnet_isapi.dll file that limits the length of the path in the url to MAX_PATH which is hardcoded at 260 chars.

有没有其他人遇到了这一点,并找到了解决这个限制的一种方式?
查询字符串参数是不是一种选择。

Has anyone else ran into this and found a way around this limit? Query string parameters are not an option.

谢谢,
格雷格·巴拉德

Thanks, Greg Ballard

推荐答案

这是ASPNET_ISAPI.DLL一个已知问题,目前还没有解决方法。在运行您的网站时,您没有看到这个问题的原因内置Visual Studio的Web服务器(又称卡西尼)是因为它的所有管理code和不依赖于ASPNET_ISAPI.DLL。

This is a known issue with aspnet_isapi.dll and there is currently no workaround. The reason you don't see this issue when running your site in the built-in Visual Studio Webserver (aka Cassini) is because it's all managed code and doesn't rely on aspnet_isapi.dll.

这将在ASP.NET的未来版本中得到解决。

This will get addressed in a future version of ASP.NET.

这篇关于ASP.NET的url MAX_PATH限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆