我可以遵循哪些最佳实践来增加 IIS7/ASP.NET 中 URL 的最大长度?
请指教。
最佳答案
来自本站:http://technet.microsoft.com/en-us/library/cc754791(v=ws.10).aspx
Use command line : appcmd set config /section:requestfiltering/requestlimits.maxurl: unit
下面解释如何使用appcmd:
http://www.windowsnetworking.com/articles_tutorials/Configuring-IIS-7-command-line-Appcmdexe-Part1.html
You need to know where the AppCmd.exe command is located as it is not in the default PATH. In order to run AppCmd.exe, you will either need to change directory into %windir%\system32\inetsrv\ or add that directory to your PATH variable. On my Windows 2008 server with a default installation, AppCmd.exe was located in C:\Windows\System32\inetsrv.
不过要小心。如果您的请求 url 变得非常大,请使用 post 消息传递参数
关于asp.net - 如何增加url的最大长度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10797573/