Unfortunately, this is caused by .NET framework. It restarts the application automatically, after a specified number of compilations is reached, e.g. if you edited some code files, etc. This value can be set in web.config file (by default it is 100):
<compilation debug="false" numRecompilesBeforeAppRestart="100">