I have a website running under IIS 7.0 on Windows Server 2008. It's just being used by 2-3 people at any point in time under very light load.

It runs fine for about 30 minutes, but then fails with the error:

Server Error in '/' Application.

Dynamic view compilation failed. c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a09567\0ee17e160a294837a9b42f8e66a8d2c9-1.cs(6,7): error CS0246: The type or namespace name 'MvcReCaptcha' could not be found (are you missing a using directive or an assembly reference?)

MvcReCaptcha.dll is present in the bin directory, and is certainly used by the application while it's running (functionality provided by that DLL is referenced).

The application can be reliably restarted by:

  1. Stopping that site
  2. Deleting c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a09567
  3. Restarting that site

The Application Pool is set to recycle every 1740 minutes (no other conditions).

Thoughts on what might be causing the crash?


Place the dll in the GAC, this should cause this issue to stop recurring.

  • Thanks for the tip. Still, I would prefer not to have to GAC the DLL and would really like to understand the root cause. – Eric J. Aug 27 '10 at 21:01
  • Perhaps it is that IIS is misinformed as to where this resides. – Woot4Moo Aug 27 '10 at 21:15
  • How could that happen? IIS can find the DLL initially, just seems to lose track of it at some point. What might I have done setting up the site that could cause that behavior? – Eric J. Aug 30 '10 at 20:49

It turns out this is a known issue with the Spark view engine.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.