ASP.NET Core 2.1 Preview 2 App Not working on Azure App Service

后端 未结 7 1212
温柔的废话
温柔的废话 2021-02-13 14:32

I\'ve been running my ASP.NET Core 2.1 Preview-1 app on Azure since this release became available. I had installed the ASP.NET Core runtime extensions through the portal and it\

7条回答
  •  Happy的楠姐
    2021-02-13 15:33

    Here's the only thing that seems to have worked for me.

    I did a self-contained deployment using

    dotnet publish --self-contained -r win10-x64 -c Release
    

    I then had to do a manual deployment -- in my case using FTP.

    I really would like this issue to be resolved but if it's not resolved by my next deployment, I'll do the zip deploy. Because my app has a ReactJs frontend, there were thousands of files to deploy and FTP was not a lot of fun!

    Because this approach doesn't depend on what's installed or not installed on Azure App Service, it's a much more straight forward solution.

    I still want to be able to simply click Publish in Visual Studio though!

    UPDATE: I just did a zip deployment and I'm still getting the errors I was getting before even though zip deployment was successful. So, something is still not right!

提交回复
热议问题