How do I increase the maxUrlLength property in the config in asp.net MVC 3?

前端 未结 6 1457
一个人的身影
一个人的身影 2020-12-08 12:55

I am getting this error:

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

Looking around the

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 13:39

    Take a look at this post by Hanselman. Although this post is about accepting typically invalid characters in the URL he also mentions how to configure the length of the path and the query string

    While we're in here, note that in ASP.NET 4 you can also change allowed path and queryString lengths:

    
    

提交回复
热议问题