Compilation error when overwriting ASP.NET dll

Hi All,

First off, sorry if this is in the wrong forum but the problem isn’t with ASP.NET (I don’t think) so I thought this was the best spot.

I get this error randomly when I overwrite my website DLL and have to restart IIS7 to fix it (I can’t just restart the application in IIS, has to be the whole IIS server):

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: The compiler failed with error code -1073741502.

Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016

Any ideas what is causing it?

Kindly check the detailed compiler output or the error logs for the exact error message. You can also refer to below mentioned URL which might helps you to solve your issue:

You are probably having some timing issues–requests using the old DLL, which could still be in memory, are hitting new stuff. Which compilation model are you using?

Anyhow, better fix would be to stop app pool, do update then restart app pool.