Tagmvc area

Multiple types were found that match the controller named ‘Home’

M

Asp.Net MVC’de farklı dizinlerde (farklı arealar) olmasına rağmen birden fazla aynı isme sahip Controller kullanmak istediğimizde aşağıdaki gibi bir hatayla karşılaşıyoruz.

Multiple types were found that match the controller named ‘Home’. 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.

Bu sorunun önüne geçebilmek için App_Start klasöründe bulunan RouteConfig.cs dosyasında düzenleme yapmamız gerekiyor.

(daha&helliip;)

Get in touch

Quickly communicate covalent niche markets for maintainable sources. Collaboratively harness resource sucking experiences whereas cost effective meta-services.