MVC - Multiple types were found that match the controller named 'Home'.

 

When I create a new MVC project I normally compile and run it before making any changes. The first change I make after this is normally to the assembly name and namespace. After amending the namespaces of the default controllers and model and also the global.asax markup (which I invariably forget) I re run.

If you then get the error”Multiple types were found that match the controller named 'Home'.” It is likely that the assembly from your initial compile still exists in the bin directory. Just clear the directory and rerun.

Previous
Previous

Entity Framework 4 and SQLCE 4 CTPs Odds and Ends

Next
Next

SQL Databases and Version Control–Part 2