Home > Mobile >  Getting a certificate error whenever i run any web app in visual studio 2022
Getting a certificate error whenever i run any web app in visual studio 2022

Time:11-10

The message i am getting is "Adding the certificate to the trusted root certificate store failed with the following error" and then it says "Failed with an error."

And there is no other information!

Any help would be greatly appreciated.

I have created new projects using the standard templates, and still the same problem without changing anything....

CodePudding user response:

in command prompt type where.exe dotnet if display like this:

C:\Program Files (x86)\dotnet\dotnet.exe

C:\Program Files\dotnet\dotnet.exe

you need move up C:\Program Files\dotnet\dotnet.exe in Start Menu - Edit the System Environment variables - Environment Variables - Path - Edit

after maybe need create certificate dotnet dev-certs https --trust

  • Related