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

后端 未结 15 1736
半阙折子戏
半阙折子戏 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:31

    In the case if "Copy Local" is already True, I find it sometimes to work if you remove the files where it has been published to and publish again.

    For example if you're using IIS, remove the websites and the contents of the directory to which they are published to, and publish again.

    There might be older versions of files at the destination, so to ensure you aren't using older versions, delete everything before publishing again.

提交回复
热议问题