Cannot start WCF Web Service, because of ASPNETAdapter failure

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric




Imaging you have a WCF Web Service which works fine. Unfortunately it can happen that following error occurs when somebody else try to start the service:

Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified

This error is caused by mixed development environment. That means you have build the service with .NET 4 at he x64 machine and somebody else is trying to host the service at his x86 development machine.
The solution is simple. Following picture shows configuration for both environments.


Hope this helps.

Posted Mar 18 2011, 07:16 PM by Damir Dobric
Filed under: ,


.NETDeveloper wrote re: Cannot start WCF Web Service, because of ASPNETAdapter failure
on 11-08-2012 20:49

Excellent !! Worked perfectly.

Found many other articles on this but all provided workarounds to comment out the code in Web.config. This is the actual solution. Well done on tracing down to the root ! is a .Net Community Blog powered by daenet GmbH.