I'm update my MVC5 project to MVC5.1 and now have exception on route dictionary:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
stack trace:
{"Method not found: 'System.Web.Routing.RouteValueDictionary System.Web.WebPages.TypeHelper.ObjectToDictionaryUncached(System.Object)'."}
at System.Web.Mvc.RouteCollectionExtensions.CreateRouteValueDictionaryUncached(Object values)
at System.Web.Mvc.RouteCollectionExtensions.IgnoreRoute(RouteCollection routes, String url, Object constraints)
at System.Web.Mvc.RouteCollectionExtensions.IgnoreRoute(RouteCollection routes, String url)
at WebApplication1.RouteConfig.RegisterRoutes(RouteCollection routes) in c:UsersaivanovDocumentsVisual Studio 2013ProjectsWebApplication1WebApplication1App_StartRouteConfig.cs:line 14
at WebApplication1.MvcApplication.Application_Start() in c:UsersaivanovDocumentsVisual Studio 2013ProjectsWebApplication1WebApplication1Global.asax.cs:line 17
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…