IIS7中的URL长度问题(Windows Server 2008) [英] Issue with URL length in IIS7 (Windows Server 2008)

查看:418
本文介绍了IIS7中的URL长度问题(Windows Server 2008)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iis7中的URL长度有问题.如果您要访问:

i have an issue with url lengths in iis7. If you go to:

http://www.somesite.com/myaccount/login.htm ?RETURNURL = aa2Fmyaccounta2FdefaultaaspxadnoaauserSuppliedIdentifierahttpa3Aa2Fa2Faaaaaaamaapenidacoma2Fadnoaareturnatoasigahandleaa7B633942228855348748a7Da7BaRINLQa3Da3Da7DadnoaareturnatoasigaxSa2FFPGusD7UvskGqfkJq4QtEYjc4fSVFoa2F3sXNwCBteGOBJ8mipo7yLsuSk2hEgLogbzn6SthYb0wY3pBQM1OQa3Da3Daopenidaassocahandleaa7BHMACaSHA256a7Da7B4b051c2ba7Da7ddufPa2BAa3Da3Da7Da openidaclaimedaidahttpa3Aa2Fa2Faaaaaaaaaaaopbnidacoma2Faopenidaidentityahttpa3Aa2Fa2Faaaaaaaabcpenidacoma2Faopenidamodeaidaresaopenidansahttpa3Aa2Fa2Fspec

该页面将正常加载,但是如果在末尾再添加一个字符,则会引发错误.这对您来说似乎有点挑剔,但由于它返回了一个很长的URL,因此阻止了我在登录表单上使用open id.我确实考虑过的一个选项是更改requestFiltering,因此在我的web.config中,我具有以下内容:

The page will load fine but if you add one more character to the end it will throw an error. This might seem abit picky to you but it's stopping me from using open id on my login form since it returns a long url. One option i did consider was changing the requestFiltering, therefore in my web.config i have the following:

<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxQueryString="999999999" maxUrl="999999999" />
        </requestFiltering>
    </security>
</system.webServer>

但这不能解决问题.如果有人可以提供帮助,我将不胜感激.谢谢

But this did not resolve the issue. I'd appreciate it if someone could help. Thanks

推荐答案

这是Windows的限制,目前没有解决方法

This is a limitation of Windows and there is currently no workaround

有关更多信息,请参见此StackOverflow文章:

See this StackOverflow article for more information:

ASP.NET URL MAX_PATH限制

这篇关于IIS7中的URL长度问题(Windows Server 2008)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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