IoC Castle Windsor in MVC routing problem
问题 I've set up castle windsor in my mvc app. everything works great except it also catches routes that are of type link or image. The problem is that right before exiting from the controller and generating the view "GetControllerInstance" is executed with 'null' type. This happends anytime there a link on a page like: <link rel="stylesheet" type="text/css" href="non-existing.css"/> Or a link to an image that does not exist. Why is this happening? My windows class: public class