how to enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app

Viewed 785

I set environment variable using "setx ASPNETCORE_ENVIRONMENT "Development"" in command prompt. But I got same error as I got first time in deploying blazor server app to azure.

The error I got is here below. enter image description here

Can someone help on this.

Thanks in advance.

Joon

1 Answers

You will find launchSettings.json file in \Properties folder of you application.Open launchSettings.json file and change the ASPNETCORE_ENVIRONMENT to production

Related