mscorlib FileNotFoundException
-
Friday, February 22, 2008 3:06 AMHello, I will be posting this both here and in the Visual Studio Setup and Installation section as it pertains to both since it occured while during VS2008 setup and I'm assuming during the .NET install sections.
Any application that seems to be built using .NET immediatly crashes on launch with a System.IO.FileNotFoundException
for mscorlib, event name: CLR20r3
OS: Windows Vista Ultimate
I have tried running "sfc /scannnow" but it always goes like this:
-----
C:\Windows\system32>sfc /scannow
Beginning system scan. This process will take some time.
Windows Resource Protection could not perform the requested operation.
------
I've also tried ngen.exe update from the v2.0.50727 .NET framework folder to no avail.
my filesystem does indeed contain mscorlib.dll in the v2.0.50727 folder version: 2.0.50727.1433.
Any ideas?
All Replies
-
Friday, February 22, 2008 3:20 AMSomewhat of a cross post from the .NET setup forum.
I tried installing VS2008 on Vista Ultimate. The setup failed repeatedly, even though I killed all un-needed processes, disabled WU, killed on-access virus scanning, and was running from a local copy of everything extracted from the iso.
After much persistence it said it installed successfully.
On launch VS complains that things are missing and asks if I want to permanently disable their loading.
More importantly however, all .NET applications on my system no longer run. They simply crash immediately on start-up with a FileNotFoundException for mscorlib. Happens with multiple applications 100% of the time.
My filesystem does indeed contain mscorlib.dll in the v2.0.50727 folder version: 2.0.50727.1433.
I've tried
-----
C:\Windows\system32>sfc /scannow
Beginning system scan. This process will take some time.
Windows Resource Protection could not perform the requested operation.
------
I've also tried ngen.exe update from the v2.0.50727 .NET framework folder to no avail.
I've since uninstalled everything related to VS2008 but the problems persist.
Any ideas? -
Monday, February 25, 2008 4:34 AMModerator
Sounds like .NET Framework has some problem.
Please try to repair/reinstall the .NET Framework 3.5: http://www.microsoft.com/downloads/details.aspx?FamilyID=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en
Thanks
-
Monday, February 25, 2008 4:43 AMThat didn't work.
-
Monday, February 25, 2008 4:58 AMModerator
Well, since Vista regard .NET Framework 2.0 and 3.0 as its system component, so please try to repair .NET Framework via the steps described at How to repair the .NET Framework 2.0 and 3.0 on Windows Vista: http://blogs.msdn.com/astebner/archive/2007/03/26/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx
Thanks
-
Monday, February 25, 2008 2:45 PMAs stated in the start of this thread I have already tried that:
-----
C:\Windows\system32>sfc /scannow
Beginning system scan. This process will take some time.
Windows Resource Protection could not perform the requested operation.
------
Always comes up with that Windows Resource Protection error.
Tried it under safe mode, same thing.
Tried creating a new user, same thing.
It always fails somewhere between 85 and 91% done.
I've also tried running CHKDSK before running sfc as some people have suggested in other forums, this also does not work.

