Reputation: 389
I am trying to deploy a MVC .Net Core 2.2 project to Azure, but all I get is a blue screen with the message "Your App Service app is up and running". I think this is the hostingstart.html file created during deployment.
The project I am deploying is exactly what Visual Studio 15.9.5 creates, no code changes. I can run the project locally, but cannot deploy.
If I change the URL by adding "home/index" on the end, I get the blue screen again. I created an html page and saved it in wwwroot, deployed this, and cannot view that page.
++++++ UPDATE ++++++
Thanks for the replies, below is more detail about how I create and publish the project:
In Visual Studio, I Click "Add New Project", select ASP.NET Core Web Application, choose Core 2.2 with no authentication and HTTPS support. I run the project by clicking F5. To publish, I create a new profile, leave the default values, no app insights. The website is published.
The home page is a blue screen, and I cannot access the home/index page.
(source: windows.net)
Upvotes: 5
Views: 4683
Reputation: 389
There is a NuGet package that the New Project wizard was omitting:
Microsoft.VisualStudio.Web.CodeGenerators.Mvc
I added this to the project, rebuilt, and the deployment worked as expected.
Upvotes: 4