'Bad Gateway' error when loading aspnetcore RC2 default website project

前端 未结 2 1253
情书的邮戳
情书的邮戳 2021-02-20 14:27

I am attempting to run the default ASP.NET Core Web Application (Web Application Template in VS 2015) via IIS.

I have followed the instructions from the docs here eg set

2条回答
  •  不要未来只要你来
    2021-02-20 15:27

    Ok I figured my issue out. I am pointing the physical path in IIS to the unpublished Visual Studio project root directory. This works in previous versions of .net (ie non dotnet core aspnet projects) but doesnt now.

    If you really want this to work then you have to publish your app to a temporary folder and copy the Microsoft.AspNetCore.* binaries back into the bin\Debug\ folder along with the refs and runtimes folders

提交回复
热议问题