Why is my Castle Windsor controller factory's GetControllerInstance() being called with a null value?

后端 未结 4 872
遥遥无期
遥遥无期 2021-02-04 10:30

I am using Castle Windsor to manage controller instances (among other things). My controller factory looks like this:

public class WindsorControllerFactory : Def         


        
4条回答
  •  没有蜡笔的小新
    2021-02-04 11:16

    Had this problem when following the Pro ASP.NET MVC Framework book, added

    routes.IgnoreRoute("favicon.ico");

    to the routes in the global.asax.cs file and it works. See more here: serving favicon.

提交回复
热议问题