0

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

在此处输入图像描述

我的 web.config 文件如下:

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

我的带有查询字符串的 URL 如下:

http://www.pawloyalty.com:82/预订/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=dates5%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/-?步骤=日期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/-?步骤=日期b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19/rextras-bailey/-?step=日期b6%2b19%2b6%2b19%2b6%2b19%2b6%2b19/rextras-bailey/-?step=日期

注:以上有1490 characters

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

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

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

如何摆脱这个错误页面?

4

1 回答 1

5

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

于 2013-01-17T12:25:21.577 回答