Asp.net core development model

Error. An error occurred while processing your request. Development mode In the Swapping to Development environment, more detailed information about the error that has occurred will be displayed.

In deployed applications, the development environment should not be included, as this can lead to the fact that confidential information from exceptions will be displayed to end users. For local debugging of the development environment, you can enable it by setting the ASPNETCORE_ENVIRONMENT environment variable to "Development" and restarting the application.

how to use development model after iis publication

+5
source share
1 answer

You can try setting the environment variable inside the aspNetCore element in web.config as follows:

 <aspNetCore....> <environmentVariables> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> </environmentVariables> </aspNetCore>. 

Such a change in web.config must be kept at the time of publication.

+2
source

All Articles