未能加载文件或程序集“System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e3...

在web.config中添加如下代码:


        "System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        "0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      
      
        "System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        "0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      
      
        "System.Web.Http.WebHost" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
        "0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
      

 

转载于:https://www.cnblogs.com/coce/p/8249968.html

你可能感兴趣的:(未能加载文件或程序集“System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e3...)