Using ASP.NET in a Content

By default, ASP.NET does not allow applications to be accessed remotely. This means that the in-project web browser will not be able to access the application, as it is technically running outside of the sandbox environment.

To address this, add a UseUrls statement, as shown below:

public static IWebHost BuildWebHost(string[] args) =>

You can then use dotnet run to start your application.