长网址iis7出现500错误 [英] 500 error for long url iis7

查看:171
本文介绍了长网址iis7出现500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的网站上某些长网址出现404错误.经过一番挖掘,我发现当URL某些方面的长度超过IIS7中的可配置限制时,就会发生这种情况.在这种情况下,需要在web.config

I was getting 404 errors for some long URLs on a website I'm developing. After a bit of digging I discovered that this occurs when the length of certain aspects of the URL exceed configurable limits in IIS7. In this case the maxQueryString attribute of the requestLimits property needed to be increased in the web.config

<system.webServer>
<security>
  <requestFiltering>
    <requestLimits maxQueryString="4096" maxAllowedContentLength="4096" maxUrl="8192" >
    </requestLimits>
  </requestFiltering>
</security>

这立即在我的开发服务器上解决了该问题,但是在我现在得到的远程服务器上:

This fixed the problem instantly on my development server but on the remote server I now get:

500-内部服务器错误.

500 - Internal server error.

有 您所使用的资源有问题 寻找,它不可能 显示.

There is a problem with the resource you are looking for, and it cannot be displayed.

这就是它提供给我的所有信息.

And that's all the information it gives me.

推荐答案

更改Flash以将数据发送为POST,因此不会将其附加到URL. 这里有一些示例代码.另外,您可能需要更改服务器端以将数据查找为POST而不是GET.

Change your Flash to send the data as POST, so it won't be appended to the URL. Here's some sample code. Also, you may need to change the server side to look for the data as POST instead of GET.

这篇关于长网址iis7出现500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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