2

I am trying to run a web API written in C#, in Visual Studio code 2022 but I keep getting this error

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. 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.

2
  • 2
    Did you install the .net 6 development sdk? dotnet.microsoft.com/en-us/download/dotnet/6.0 Commented May 26, 2022 at 13:57
  • Yes,I did install the .net 6 development sdk? Commented May 30, 2022 at 14:08

1 Answer 1

0

I was having the exact same error, it turned out Visual Studio just needed an update.

Updated it and restarted the app and it went away.

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

Comments

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.