Reputation: 105
This is the exception it throws after running an ordinary C# program that prints to console:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime,
Version=6.0.0.0, Culture=neutral, PublicKeyToken-b03f5f7f11d50a3a' or one of its dependencies. The system
cannot find the file specified.
I'm using MS Visual Studio with .NET 6.0.
Upvotes: 3
Views: 10361
Reputation: 149
You provided almost no information
This error is almost in 99% cases caused by missing some dll.
Double check your output bin
directory, and compare with your references.
Tip: maybe wrong .net versions
Upvotes: 4