I believe that your problem can be solved by storing status information, so the application can know whether its launch was successful.
Whenever an application checks there for something incorrectly initialized, it should reinitialize it or throw an exception and restart the application.
It is very difficult to give you a solution, but to summarize, you can do this:
- Track initialization.
- Do not run the application in an unexpected state.
- Double check if some unmanaged resource will not be released somewhere in your code (possibly file streams, database connections ...?).
- Logging , logging , logging ...
Directly answering your question:
- Restarting the application pool.
- HttpApplication (Global.asax) fires application initialization events (start of event).
- Restarting the application pool.
- HttpApplication (Global.asax) fires application initialization events (start of event).
- Basically, the application stops for the entire incoming request until you run it again. In principle, the disposal of a pool of hard applications.
- HttpApplication (Global.asax) fires application initialization events (start of event).
- Restarting the application pool.
- HttpApplication (Global.asax) fires application initialization events (start of event).
In principle, any of these actions gives the same result.
Have you tried to run the IIS reset - iisreset /restart - command? This should free up any locked resource and stop any unwanted loop, thread, or something else, crashing your application.
source share