All articles tagged as:


Overriding MVC's DefaultControllerFactory

A little while ago I worked on a project that uses Nopcommerce. In this case I did require me to override some of the Controllers. So I went of and defined some Controller is my own namespace. Only to then run into trouble with the DefaultControllerFactory: System.InvalidOperationException: Multiple types were found that match the controller named 'User'. Now why does this happen? Let's start with a little drawing of the situation. The Framework contains two assemblies that have Controllers, one set for the public site and another for the Admin area. The third assembly are Framework customisa…

Read more »