I'm new to the .NET framework developer. I just deployed my web into the web server through IIS but I'm getting some problems. I can not login and menu that need show my database table doesn't show up.
Error. An error occurred while processing your request. Request ID: 00-7ebef872d28da233400c7c5880f8e4f2-92d490fdca09490c-00
Development Mode Swapping to Development environment will display more detailed information about the error that occurred.
The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.
I have already changed the environment variable in the web.config
<environmentVariables> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" /> </environmentVariables> I also added a new system variable with
Variable Name: ASPNETCORE_ENVIRONMENT Variable Value: Production
But I'm still getting the errors. Could you help me to fix this? Thank you so much for your help.
ASPNETCORE_ENVIRONMENTtoDevelopment, notProduction. And it will not fix the issue, it will show more error messages for you. It will help you locate the issue.