Could not load file or assembly System.Web.Http, Version=5.2.2.0

后端 未结 8 922
孤街浪徒
孤街浪徒 2020-12-29 22:31

I\'ve just uploaded a Asp.Net Web Api 2.2 project to production server and I got the error stated in the title.

In my Web.config I already have this:



        
8条回答
  •  -上瘾入骨i
    2020-12-29 22:45

    I ran into the same exact error. It was caused by a script I was using to deploy the application which replaced the Web.config with a previous version. The Web.config was specifying the wrong version of System.Web.Http. Removing that step solved the problem.

提交回复
热议问题