Asked By
Simra
790 points
N/A
Posted on - 06/12/2011
FxCop is an application that analyzes the assemblies of managed code (code that directs the .NET Framework common language runtime) and information about the assemblies, such as potential design improvements, localization, performance, and security.
For two days, I am getting this error while trying to run fxcop.exe.
The screenshot of the error is
Fxcop.exe – .NET Framework Initialization Error
Unable to find a version of the runtime to run this application.
I'm not sure about the cause as no ran with frequency. Last I used it while working on a project for a month. Now I need to re-run it, but now I'm getting the error mentioned.
I am using Windows XP SP2, visual studio 2008 and .net framework 4.0 . The hardware in my PC Â is Core i3 processor with 2 GB of ram.
Fxcop.exe – .NET Framework Initialization Error
Hi!
-
First you need to reinstall the .NET Framework 2.0 with all available updates.
-
After installing the .NET Framework 2.0 you should disable the antivirus software which you are using.
-
Then go to the control panel and Remove all .NET Framework 2.0 entries with updates.
-
Then go to MS Update and then reinstall the .NET Framework 2.0 and updates through manually download, then restart the computer.
-
After successfully reinstalling the software and restarting the computer you should re-enable your antivirus software.
If this does not work then try this:-
-
Click on the Start button and the click on the control panel.
-
The windows will appear of the control panel then click on the Add Remove Program from the given icon.
-
Then you should remove the older version of the .Net Framework after uninstalling the older version.
-
Download the newer version the .Net Framework from the net with the latest updates and after downloading it, install the software.
-
Before the installation, the antivirus of the computer should be stopped then install and restart your computer.
After this, the problem should be resolved.
Thanks.
Fxcop.exe – .NET Framework Initialization Error
This error has many reasons to be raised. But all of them are related to the installation of .net framework. To overcome this problem, you have to repair the .net framework used. To do this, you can download the .net framework necessary and appropriate depending on the version of Visual Studio (I. e. Visual studio 2005, visual studio 2008 or visual 2010).
In the problem description, you mentioned that you use the .net framework 4.0, so you have to download .net framework 4.0.
The following steps are because you tried to fix the same mistake before. But if it doesn't work with you, trying to inform us once again.
-
Download the .NET Framework cleanup tool cleanup tool and decides to clean the .NET Framework version that is causing problems in your system.
-
Download and install the .NET Framework version that cleanse in step 1 (i.e., .NET Framework 1.1Â or NET Framework 2.0). In your case (.Net framework 4.0).
-
(Optional) Download and run the .NET Framework verification tool verification tool to verify that all .NET Framework files are installed correctly.
-
Download and install the .NET Framework service desired (for example, .NET Framework 4.0 SP3) pack running the installation package directly instead of using Windows Update. Run it directly will enable the installation of the service pack display error dialog boxes instead of having them turn off Windows Update.
I hope that it helps you.
Best regards
Jhon