Error loading hostpolicy.dll while deploying .NET Core console app to Azure WebJobs

后端 未结 3 1745
春和景丽
春和景丽 2021-01-01 23:49

I have followed this tutorial to deploy a .NET Core console application to an Azure Web Service WebJob.

My app is running locally without any issue (with dotnet

3条回答
  •  离开以前
    2021-01-02 00:40

    This error could happen if the bitness of your application doesn't match the bitness of your App Service (e.g. publishing a 64-bit deployment to an App Service running in 32-bit mode).

    To solve this I had to change the bitness to the correct setting in Azure:

    To match the bitness of my publish profile in VS:

提交回复
热议问题