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

后端 未结 8 947
孤街浪徒
孤街浪徒 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条回答
  •  误落风尘
    2020-12-29 22:47

    I solved the problem into the following steps:

    1. Stopping the site into the remote web server
    2. Cleaning the site folder
    3. Publishing it again
    4. Starting the site

    One click publishing did not replace the correct version of dll or the remote site was keeping the file in use.

提交回复
热议问题