In my case, you simply delete the next line in RouteConfig (it has already been erased).
//Exception error start routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); //exception error end
In VS2012, this should be enough.
routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } );
You may also need to check your controller. Also remove the Class link in RouteConfig if you are not sure what they are for. In my case, I just keep these two:
using System.Web.Mvc; using System.Web.Routing;
Another solution, if you want, and you have time to find out what causes the conflict, you can set the multi-page version of Project Build Output to the detailed one (Go to Tools-> Options -> Project and Solutions -> Build and Run -> MSBuild project build output verbosity) and upon build check your logs.
dr.Crow
source share