You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloaded code and trying to follow along... when I run app and browse to /productions/edit/1 - I get the below error. Thoughts?
Kevin
Multiple types were found that match the controller named 'productions'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.
The text was updated successfully, but these errors were encountered:
Hmmm... got past issue by modifying Global.asax default route to:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional },
new string[] { "VidPub.Web.Controllers" } // added this line to set default controller
);
Hello -
Downloaded code and trying to follow along... when I run app and browse to /productions/edit/1 - I get the below error. Thoughts?
Kevin
Multiple types were found that match the controller named 'productions'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.
The text was updated successfully, but these errors were encountered: