I built and published the application using this instruction: https://docs.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-react?view=vs-2022 I used two projects: "React" and "API asp.net" Visual Studio templates.
Chose publish ASP.NET Core project to the folder. Moved the application to a local IIS server and created a website. Before publishing, I corrected the URL of the 'target' parameter to React to the URL of the website. Perhaps there is a wrong action here.
As a result,
- "http://localhost" response with code 404
- "http://localhost/weatherforecast" response 200 with JSON
How to configure the application to run on the IIS server? I'm trying to find material on this topic, but without results.