4

My mscorlib.dll seems to be corrupt. I tried reinstalling from the standalone .NET 4 installation package, but .NET 4 is integrated into Windows 8.1. Is there a way to repair it?

I have tried System Restore and sfc. They did not work.

I know I can reinstall the system, but I would like a less painful solution.

3
  • Actually 4.5 is integrated into Windows 8.0 not 4.0
    – Ramhound
    Mar 17, 2014 at 0:07
  • I think both are. :)
    – Igor Ševo
    Mar 17, 2014 at 13:24
  • 1
    That is not possible 4.5 replaces 4.0 they cannot co-exist at the same time.
    – Ramhound
    Mar 17, 2014 at 13:34

2 Answers 2

5

To repair use the following command at a command prompt (with privileges)

DISM /Online /Cleanup-Image /RestoreHealth

RestoreHealth: This switch option checks for component store corruption, records the corruption to the log file, and FIXES the image corruption using Windows Update. This should take around 10-15 minutes up to about an hour to finish depending on the level of corruption.

Source

1
  • Tried that too. Did not work.
    – Igor Ševo
    Mar 16, 2014 at 22:51
3

I manually copied the corrupt file from a different computer with the same Windows installation. It took some permission changing, but I managed to replace the file.

You must log in to answer this question.

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