Jaap
Jaap

Reputation: 57

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

I have been programming a game using C#, Visual Studio and the Monogame Framework. Today i reopened the program after a long time on a new computer and also upgraded the monogame framework.

However, when i try to compile, i get this error:

System.IO.FileNotFoundException was unhandled Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: Kan bestand of assembly System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.

Does anyone have any idea how to fix this?

I am absolutely new to anything *.dll-related, so i have no clue where to start searching.

Thanx a lot!

Upvotes: 0

Views: 2658

Answers (1)

Jake Henry
Jake Henry

Reputation: 327

I had this issue for a while.

It turned out to be because I had the [assembly: AssemblyCulture("en")] attribute in AssemblyInfo.cs set to "en". Once I removed the "en" and put it back to [assembly: AssemblyCulture("")] this error was resolved. I think the error was being thrown because I did not have any culture folders in my build output directory.

The answer on this page helped me figure out what my problem was.

Upvotes: 1

Related Questions