Cześć wszystkim.
Mam aplikację w net.core 2.2 i angular, lokalnie wszysko działa, mam jednak problem z opublikowaniem jej i wrzucieniem na IIS. Po wrzuceniu do wwwroot aplikacja wyświetla komunikat błędu:
Error.
An error occurred while processing your request.
Request ID: 0HLQUC1G5O2M3:00000001Development Mode
Swapping to the Development environment displays 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.
W launchSettings.json ASPNETCORE_ENVIRONMENT zmieniłem z Development na Production, jednak bez żadnych efektów
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:21060",
"sslPort": 44337
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
}
},
"FullSPA": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
}
}
}
}
Ktoś podpowie jak w wersji finalnej wyłączyć development_mode ?