Could not load file or assembly System.Web.Http.WebHost after published to Azure web site

后端 未结 15 1753
半阙折子戏
半阙折子戏 2020-12-07 10:39

I created a web project and it runs well in Visual studio. However, I got the following error after published it to azurewebsites. What can cause the issue?

15条回答
  •  甜味超标
    2020-12-07 11:29

    I met the same problem and I resolved it by setting CopyLocal to true for the following libs:

    System.Web.Http.dll
    System.Web.Http.WebHost.dll
    System.Net.Http.Formatting.dll
    

    I must add that I use MVC4 and NET 4

提交回复
热议问题