Quantcast
Viewing all articles
Browse latest Browse all 9386

ASP.NET Core 2.0 works in IIS Express, no web page when published to Azure

So I'm getting acquainted with ASP.NET Core 2.0 (not 2.1 preview). I'm using MithrilJS as a frontend. I've got a nice little sample site working in IIS Express but when I publish to Azure (http://samplecore.azurewebsites.net) it can't find any web pages.

I built this site up from an empty template so I could understand better what goes into building ASP.NET core sites. Also, If I publish the sample ASP.NET Core Angular project in Visual Studio, it works. I logged into both these Azure sites with FTP and snooped around for differences. Nothing stood out to me. So for the moment, I'm kind-a stuck.

If someone would be so kind as to look at: https://github.com/mike-ward/SampleCore.

Run the "build.cmd" to get things going.

I'm using Razor pages so maybe something is happening there.

Update: Added UseDirectoryBrowser(). At least something appears now.

Update: http://samplecore.azurewebsites.net/api/sampleapi/version works so maybe it does have something to do with Razor pages.


Viewing all articles
Browse latest Browse all 9386

Trending Articles