By default, the ASPNETCORE_ENVIRONMENT variable is set to Production to prevent showing sensitive data to end-users
Add the below lines to your web.config to show the details of the error
<aspNetCore processPath=".\MyApplication.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
No comments:
Post a Comment