The ASP.NET MVC application starts very slowly (at least 20 seconds before the first rendering). It has many assemblies in the bin folder.
I understand that the runtime looks through all assemblies looking for classes Controller. I suggest that this reflection will be very slow. We are on shared hosting, so the first download is very slow, and there are many first downloads, because the application pool is often processed.
I have seen many examples of manually registering controllers using IOC containers. We do not use IOC.
So how do I manually register controllers? I would like to do it in Application_Start, or something like that.
Change regarding some comments. I know that this will not solve the problem of a slow start. But it can help. Therefore, it makes no sense to dissuade me from trying, because we decided to try :).
h bob source
share