One of our web servers has become inoperable and after some searching we think the .NET Framework might be corrupted in some way.

The server runs Windows 2008 R2 and uses the 2.0 framework for the ASP.NET application that is (or better: was) running using IIS 7.5.

I'm wondering how we can reinstall the .NET 2.0 Framework on Windows 2008 R2. Any ideas?

Kind regards, Niels R.

  • What makes you think .net framework is corrupt? You cannot uninstall .net 2.0 in Windows Server 2008. Yes, if you feel .net web pages are not working fine i.e. .aspx etc try aspnet_regiis.exe -ir Mar 24, 2010 at 12:03
  • We are running a cluster of 3 front-end server with identical configuration and code base (virtual servers using HyperV). The server given problems stopped working after a few months. Symptoms: starting the web application results in the Application Pool being automatically disabled due to a series of failures in the process serving that application pool. In the Event Viewer there is a Error entry ".NET Runtime version : 2.0.50727.4927 - Application ErrorApplication has generated an exception that could not be handled." Restoring a backup of the code doesn't fix the error. Restarting neither.
    – Niels R.
    Mar 24, 2010 at 12:14
  • I would suggest trying what Vivek suggested, re-registered the framwork using aspnet_regiis.exe -ir
    – Sam Cogan
    Mar 24, 2010 at 12:19
  • appPool disables after failing for 5 times (due to rapid fail protection) means your application crashed multiple times. I would suggest you do some sort of debugging to see what is causing the appPool to crash. Mar 24, 2010 at 13:04

2 Answers 2


As mention, the .net framework is now an integral part of the OS and can't just be repaired from add/remove programs. You can run System File Checker, to check the OS components by running this from the command prompt.

sfc /scannow

However the only way to perform a full repair of the .net components is to repair or re-install the OS.

  • Thanks, I tried running the given command before asking my question and this resulted in "Windows Resource Protection did not find any integrity violations."
    – Niels R.
    Mar 24, 2010 at 12:06

Reinstall the server. Seriously.

.NET is part of the OS an dthus installed. You can try removing / readding it, but at the end you have a compromised integrity of the operating system. As you say "one of" I assume you havea cluster - dont think abuot it, just wipe it, install it and reintegrate it.

  • That's what I was afraid of... I'll let Operations handle this, but I don't like the idea reconfiguring the whole server :p
    – Niels R.
    Mar 24, 2010 at 12:14
  • Should be not so hard. Save the IIS configuration ;) It is one file you can read out.
    – TomTom
    Mar 24, 2010 at 12:44

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.