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:
I solved the problem into the following steps:
One click publishing did not replace the correct version of dll or the remote site was keeping the file in use.