如何提高在asp.net MVC 3的配置的maxUrlLength财产? [英] How do I increase the maxUrlLength property in the config in asp.net MVC 3?

查看:292
本文介绍了如何提高在asp.net MVC 3的配置的maxUrlLength财产?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误:

的URL该请求的长度超过配置
  maxUrlLength值。

The length of the URL for this request exceeds the configured maxUrlLength value.

环顾我能找到的最接近的是在web.config中,

Looking around the closest thing I can find is in the web.config,

<requestFiltering>
   <requestLimits maxUrl="xxx">
</requestFiltering>

然而,这并不MaxUrlLength也没有解决问题。任何想法如何解决?

However this is not MaxUrlLength nor does it resolve the issue. Any ideas how to fix?

推荐答案

根据阿肖克的答案将等同于:

As per Ashok's answer that would equate to:

<httpRuntime maxUrlLength="1024" relaxedUrlToFileSystemMapping="true"/>

&LT;&的System.Web GT; web.config中的部分。

within <system.web> section of the web.config.

这篇关于如何提高在asp.net MVC 3的配置的maxUrlLength财产?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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