Hi @Maksim Khatamov ,
Apologies for the delay in response. Which part of the solution from StackOverflow did you try? Did you set the environment variable to IIS or update your web.config file? ASP.NET Core configures app behavior based on the runtime environment using an environment variable.To determine the runtime environment, ASP.NET Core reads from the following environment variables:
1.DOTNET_ENVIRONMENT
2.ASPNETCORE_ENVIRONMENT
when ConfigureWebHostDefaults is called. The default ASP.NET Core web app templates call ConfigureWebHostDefaults. The ASPNETCORE_ENVIRONMENT
value overrides DOTNET_ENVIRONMENT
.
Please follow the steps in this doc to set the environment variable.
Let us know if you have further questions.
-Grace