简体   繁体   中英

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM