My ASP.NET MVC app starts very very slowly (minimum 20 seconds till first render). It has lots of assemblies in the bin folder.
I understand the runtime scans all assemblies, looking for Controller classes. I imagine this kind of reflection would be very slow. We're on shared hosting, so the first load is terribly slow, and there are lots of first loads, because the app pool is recycled frequently.
I've seen lots of examples of manually registering controllers using IOC containers. We don't use IOC.
So, how do I manually register controllers? I'd like to do this in Application_Start, or something like that.
Edit regarding some of the comments. I know that this won't solve the slow start problem entirely. But it might help. So no point in dissuading me from trying, because we've decided to try :).