PathTooLongException after migrating from ASP.NET MVC 1 to ASP.NET MVC 2

一世执手 提交于 2019-12-05 14:26:56

This is more of an ASP.NET 4.0 default limit rather than ASP.NET MVC 1.0 to 2.0 migration issue. Try increasing this limit in web.config:

<httpRuntime maxUrlLength="1000" relaxedUrlToFileSystemMapping="true" />

Problem is solved. It was caused by Spring.NET. WebApplicationContext works correctly with ASP.NET MVC 1.0. But couple WebApplicationContext + ASP.NET MVC 2.0 causes PathTooLongException. Now i just switch to XmlApplicationContext and all pages renders without errors.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!