Я разработал проект с использованием ASP.NET Core 3.1 и развернулся на другом компьютере на сервере IIS, после того, как запустил проект отображается ошибка. < /p>
Error.
An error occurred while processing your request.
Request ID: |211a0ec3-44255ebd8e81a907.
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.
< /code>
Вот мой запуск. json < /p>
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:54417",
"sslPort": 44371
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"EasyBooks": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
< /code>
Свойства моего проекта в рамках отлаживания под переменной среды - < /p>
Name: ASPNETCORE_ENVIRONMENT
Value: Development
Я разработал проект с использованием ASP.NET Core 3.1 и развернулся на другом компьютере на сервере IIS, после того, как запустил проект отображается ошибка. < /p> [code]Error.
An error occurred while processing your request.
Request ID: |211a0ec3-44255ebd8e81a907.
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. < /code> Вот мой запуск. json < /p> "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:54417", "sslPort": 44371 } }, "profiles": { "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } },
"EasyBooks": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "https://localhost:5001;http://localhost:5000" } } } < /code> Свойства моего проекта в рамках отлаживания под переменной среды - < /p> Name: ASPNETCORE_ENVIRONMENT Value: Development [/code] Сообщество помогает решить эту ошибку, пожалуйста