1

When I try to build the application i get:


Error   1   Unexpected error reading metadata from file 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll' -- 'Index not found.' NHMDLive.Models

I cant figure out what the problem might be. I have checked the mscorlib.dll and did a checksum and it is not corrupted. Must be something else.

1
  • I got the same error with VS 2013 - Unexpected error reading metadata from file 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll' -- 'Unknown error (8007000e)'. Later my exe being debugged crashed with low memory error. Though I got this error while trying to debug and not building it. Also you have something additional Index not found thingy. Commented Aug 19, 2016 at 6:40

1 Answer 1

2

you can't code for the version 4 of dotnet with vs 2008.

You will have either to upgrade to VS 2010, or use 3.5 or less version of assemblies

Sign up to request clarification or add additional context in comments.

4 Comments

Im sorry about the tag I am using VS 2010
no pb. If you create a new blank project from scratch and if you do no modification... does it compiles ?
No i get the same message. I have also tried repair installing .net 4. If i try to compile the same blank project under 3.5 it compiles just fine.
try to reinstall also VS 2010... but it's only a bet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.