0

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?

2 Answers 2

0

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

3
  • 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, 2010 at 21:01
  • Perhaps it is that IIS is misinformed as to where this resides.
    – Woot4Moo
    Aug 27, 2010 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, 2010 at 20:49
0

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

https://stackoverflow.com/questions/1805779/using-asp-net-mvc-2-features-with-the-spark-view-engine

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .