I'm using MVCTurbine in my application which automatically injects my controllers in my asp.net-mvc 2.0 website. My master pages, view pages, css, web.configs and javascript files are in my mvc project, all the rest (including the global.asax) are in seperate libraries.
When I put a breakpoint at my Controller's constructors I notice that ALL the constructors are hit 4 times for each request and the controller with the actual action in gets hit an extra 5th time.
I've tried to reduce the problem surface in the following ways:
- Reduced my view and masterpage to minimum (all custom code removed)
- Reduced my view
- Simplified my controller to the minimum
- Simplified my global.asax.cs to minimum
The breakpoint has no meaningfull stacktrace.
Posted the simplified code to http://gist.github.com/514442
The problem code in context of a project can be found at http://github.com/boriscallens/Beek
I'm kind of out of ideas, any hints or ideas on how to continue debugging this are welcome.