Makiwa

Stuart Campbell’s occasional musings about software development, etc.

Duplicate controller types found for ‘home’

I’m getting used to ASP.NET MVC at the moment. One of the errors that has confused me (twice!) is:

Duplicate controller types found for ‘home’. To disambiguate the controller set the controller’s namespace in the route.

Both times I got this error it was because I had renamed the web application project and its assembly name. This meant that my HomeController was sitting in two different assemblies in the bin folder: the old assembly and the new one. The solution is to simply delete the old assembly from the bin folder.

The fact that I got caught by this twice is a little embarrassing.


Categorized as Development

Leave a Reply