错误请求 - 无效的网址

时间:2013-01-17 12:21:09

标签: .net asp.net-mvc-2 azure asp.net-mvc-routing azure-web-roles

当我在Windows Azure模拟器(开发环境)上运行Asp.Net MVC 2项目时,我遇到了下面提到的问题

enter image description here

我的web.config文件如下:

<httpRuntime maxUrlLength="4096" relaxedUrlToFileSystemMapping="true" maxQueryStringLength = "4096" requestValidationMode="4.0" />

我的带查询字符串的网址如下:

  

http://www.pawloyalty.com:82/booking/camp-canine-doggy-daycare-and-boarding/cgillette/key/camp-canine-doggy-daycare-and-boarding-cgillette-20130103154022/pets/bailey/service/full-day-care/dates/2013-1-3%2b2013-1-4%2b2013-1-7%2b2013-1-8%2b2013-1-9%2b2013-1-10%2b2013-1-11%2b2013-1-14%2b2013-1-15%2b2013-1-16%2b2013-1-17%2b2013-1-18%2b2013-1-21%2b2013-1-22%2b2013-1-23%2b2013-1-24%2b2013-1-25%2b2013-1-28%2b2013-1-29%2b2013-1-30%2b2013-1-31%2b2013-2-1%2b2013-2-4%2b2013-2-5%2b2013-2-6%2b2013-2-7%2b2013-2-8%2b2013-2-11%2b2013-2-12%2b2013-2-13%2b2013-2-14%2b2013-2-15%2b2013-2-18%2b2013-2-19%2b2013-2-20%2b2013-2-21%2b2013-2-22%2b2013-2-25%2b2013-2-26%2b2013-2-27%2b2013-2-28%2b2013-3-1%2b2013-3-4%2b2013-3-5%2b2013-3-6%2b2013-3-7%2b2013-3-8%2b2013-3-12%2b2013-3-13%2b2013-3-14%2b2013-3-15%2b2013-3-18%2b2013-3-19%2b2013-3-20%2b2013-3-21%2b2013-3-22%2b2013-3-25%2b2013-3-26%2b2013-3-27%2b2013-3-28%2b2013-3-29/rtimes/7.5%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19/rextras-bailey/-?step=dates

注意:以上1490 characters

我的控制器操作方法的重定向如下:

return RedirectToRoute("booking", new { action = "index", providerKey = providerKey, ownerKey = ownerKey, arguments = arguments, step = step });

注意: arguments具有以上查询字符串详细信息

如何摆脱这个错误页面?

1 个答案:

答案 0 :(得分:5)

将您的网址长度保持在2000个字符以下,或使用POST方法而不是GET