404.20 for long url in MVC 3

≡放荡痞女 提交于 2020-01-06 03:22:27

问题


I get 404.20 error as result on request (long url). If I decrease length of url all became ok.

For example

https://almauktg98m6wotn34q0e.****.***/SurfT/gp/html/script/_/2/SENfaUozTXlvLmhvYVdsVUI2N01NX2RyM1I3dmkvcWEtd0kvczhxb1VyNGdkMC9y/ejEvNDJCMkEvTmpCLzFuZC1ZN3YuTDAsbFZsL0tNa040L2tyQS9RbnItdnMwLms3L/E5qQi9QbmRRWi9xMFZjMC1BaTdNUGktc1R3by9BSnFhTi1rMjV5TjUteVBwTi1lNV/QuZ2osZWE4L25UNzFjLzRXai1ZVU5xL1Ridy1BMFdCLWlCZC51aSxGMXkvSnJzelE/vN0IxZEF6V2MvVkFBcW9OYm8tQWQ3eC1pQmQudWksRjF5L0pyc3pRL1ZRUmQtNldj/by9UUWFpLThldTktQjdKLlRwLGJzNS9LdHg3Ni8wSGZRLUh6NTIvaHJCQS1jaFI0L/TZCbS4zRSxDY0EvcVBIQWEvVnptMFgtQ1JFZC8yS3h3Si1LMGpWLXc4Ri5HVCxoVn/YvZ3M1SlkvaUg0cWktdlRUQmxHLUprZUFKQjgvVnptMFgtWjFFZ0hmLWRyM01BcW0/tdnMwLms3LE5qQi9QbmRRWi9xMFZjMC1XMFoxRS85YU5oNi1YUXp6Ui13OEYuR1Q/saFZ2L2dzNUpZL2lINHFpLWpOSkNmLzJLeHdKLUxuMFZxLTZCbS4zRSxDY0EvcVBI/QWEvMWMwei9sVk0xLUd2NS54VixPdHgveGE4TmYvQkdkRnotZW9RQUkwMlYvbW05b/UUtUmROMkxxNkctNXlhLmZ1LENpWS9IakJiVS9vVUFQZS1SdHcyTnNFQi9kUzI1di/1WSDV0Y0V3bS1HbFYuSXgseDdtL0lHN3VrLzRweUZ5LVROdVhlTnZkWS9CeGlLdy1/nQ21FTENnQjYtamRMLjM2LE1ycy9EaVlBUi85YU5oNi1ZUXRqVjRxaTl0L0JHZEZ6/LWpyUDlCcWFONG8tR2xWLk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cause this problem?

I'm using IIS 8 + vs 2012 + windows 8


回答1:


Maximum 256 character limit between slashes

To send such data is better to use POST.

Also you can increase maximum url length, defined in Web.config (or default).

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

http://msdn.microsoft.com/en-us/library/ms689462%28v=vs.90%29.aspx



来源:https://stackoverflow.com/questions/20798392/404-20-for-long-url-in-mvc-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!