【发布时间】:2012-02-23 08:41:18
【问题描述】:
我在 MVC3 应用程序中使用以下路由
context.MapRoute("RoutName", "GetReport/{Id1}/{Id2}/{requestId}/{customerId}/
{CustomerVersion}/{Code}", new {controller= "ControllerName",action = "GetReport" });
此路由适用于本地环境中的以下 URL
http://localhost/ControllerName/GetReport/104334/120531211240541002/120531211240551002
/120531211237331002/1/Code
但在服务器中,我收到“由于 URL 中的无效字符而阻止访问”。 MVC中的URL长度有限制吗?
任何输入都会很棒。
【问题讨论】:
-
这个问题对你有帮助吗:stackoverflow.com/questions/1185739/… ?
-
我查看了链接,URL 长度似乎少于 150 个字符。我不确定我的情况是什么问题。
标签: asp.net-mvc-3