Сначала я подумал, что виноват именно aspNetCore processPath
, но с учетом ошибки он больше походил на код из Startup.cs
.
if (env.IsDevelopment())
{
spa.UseReactDevelopmentServer(npmScript: "start");
}
Глядя на фактический развернутый файл, он подтвердил мои подозрения, путь здесь был относительным.
![enter image description here](https://i.stack.imgur.com/QTts6.png)
I needed to set ASPNETCORE_ENVIRONMENT
as Production
. Solved this by creating a new web.release.config
file since I needed to test the application on an actual IIS with ASPNETCORE_ENVIRONMENT
as Development
. With this transformation everything worked:
<?xml version="1.0" encoding="utf-8"?>
Источник:
{ ссылка }