asp.net - 如何增加url的最大长度?

标签 asp.net iis-7

我可以遵循哪些最佳实践来增加 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/

相关文章:

sql - 远程计算机拒绝网络连接错误

iis - 是否可以在 IIS 7 中将虚拟目录设置为根目录?

c# - 在 IIS 7.0 中对 html 页面的未授权访问错误

asp.net - 如何在 mvc .net Web 应用程序中从 jquery(在自定义 View 页面中)调用 Controller 后操作

c# - 使用 Razor 内联设置 javascript 变量,这是好的做法/安全吗?

asp.net - 当我使用 Metro UI-CSS 时 Accordion 不工作

c# - 在mvc中创建 View

asp.net - Windows 身份验证成功,但 IsAuthenticated == false

iis-7 - IIS7 和 32 位应用程序池

c# - .js 文件未被 Win 2008 Web Edit IIS 7 上的网站定位