I\'m trying to host my service with IIS 6 but I keep get this exception.
Server Error in \'/WebServices\' Application.
----------------------------------
Double check that you're referencing the correct type from the ServiceHost directive in the .svc file. Here's how...
This may sound trivial, but worth mentioning: You have to build the service (in Visual Studio) - then a DLL will be created in the bin subfolder.
When the service is "deployed" on a server - that bin folder needs to have that DLL file in it - otherwise this error will be thrown...
I had the same problem, found this thread, tried all but nogo.
Then I spend another 4 hours wasted time.
Then I found that the compilation settings had changed from 64bits to x86. When I changed it back to 64bits it worked. Don't know exactly why but could be that the IIS application pool was not set to allow 32 bit applications.
Make sure markup (svc) file has service attribute with namespace.classname and codebehind will be classname.svc.cs
Rebuild the solution
Restart the app pools from local IIS once.