У меня есть веб-хостинг, который поддерживает ASP.NET Core 2.2.Я попытался опубликовать свой собственный проект ядра 2.2 asp.net, и он работал только с дизайном.А затем я добавил Identity в проект и добавил ту же базу данных на хост (экспортированные и импортированные базы данных, созданные с помощью миграций).Я также изменил соединение с базой данных, но когда я пытаюсь опубликовать тот же проект, он выдает мне эту ошибку:
HTTP Error 502.5 - Process Failure
Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681
Вот моя строка соединения:
"ConnectionStrings": {
"IdentityConnection": "Data Source=.\MSSQLSERVER2016;Database=ChatIdentity;Integrated Security=False;User ID=halitkal;Password=v*Q9zp07;Connect Timeout=15;Encrypt=False;Packet Size=4096"
},
Здесьмой файл webconfig:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\ChatSite.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 028aa0e3-c5ef-4f5c-87ac-e8de39c5ca44-->