0

I have a large solution with multiple projects within Visual Studio running successfully with .NET Framework 4.6.2. I followed the various instructions I found to upgrade to .NET Framework 4.8...

  • change all the projects to Target ".NET Framework 4.8"
  • run command "update-package -reinstall" in the package manager console
  • run command "Get-Project –All | Add-BindingRedirect" in the package manager console

The solution builds cleanly but when run (using IIS Express locally from Visual Studio) I get an immediate 500 error in the browser. When I hit the Pause icon the application doesn't break and the Pause icon greys out.

One post suggested adding a line to the web.config "<add assembly="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" />", which made no difference with or without.

I have looked around and cannot see anything relevant, but I'm sure I must have missed something fairly elementary.

I have tried restarting VS and the machine, running VS as administrator or not and manually updating all the nuget packages (took ages) to the latest versions as well. No apparent change - still very quick 500 error upon running the application. I checked that the .csproj files refer to the new target framework.

New contributor
Keith Fearnley is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.