Assembly binding redirect not working

后端 未结 3 1004
星月不相逢
星月不相逢 2021-02-19 10:12

I am trying to deploy a test web app on Azure, but when I run the Azure emulator on my local machine I get this error from the Azure emulator console attached to my WebRole:

3条回答
  •  遇见更好的自我
    2021-02-19 10:53

    As of today with the latest SDK a WebRoleProjectName.dll.config will be automatically generated for you with the contents of the Web.config and copied to the output directory.

    However this won't be automatically be included in the deployment package! For this to happen you have to employ a kind of hackish solution: include the generated file in the project by selecting "show all files", then including just this file. The resulting change in the csproj should look like this (not, don't select it to be "Copy always"!):

    
    

提交回复
热议问题