Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Problem trying to deploy an ASP.Net Core 2.0 web application to IIS

$
0
0

I have an ASP.Net Core 2.0 mvc web application I am trying to deploy using IIS. I have been working off of this document:

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/index?tabs=aspnetcore2x#deploy-the-application

I have followed it closely. Once I finish the steps, I try to navigate to the page and I get the page not found 500 error. When I deploy (and I've tried it with the tool in Visual Studio 2017 and Powershell), I noticed the Views folder is not there. I tried manually moving that folder over, but I get the same 500 error. The Default Web Site runs fine when I turn it on. I am running IIS on Windows Server 2012 R2. I have ASP.Net Core 2.0 installed, along with the latest hosting package from Microsoft, DotNetCore.2.0.5-WindowsHosting. The web app runs fine locally when hitting ctrl-f5, etc. But whe I try to deploy, I get the error. Any thoughts or ideas on what I can look at or try would be appreciated.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>