WCF, Service attribute value in the ServiceHost directive could not be found

The problem could also be a in a different namespace in svc file as it is in svc.cs file.

In svc file namespace must be in the following format.

Service="Namespace.SvcClassName"

Option One:

This message is often due to an IIS 7 config problem. If you are used to creating a virtual directory pointing to the folder where your service resides, that no longer works. Now, you need to use the "Create Application..." option instead.

Other Options:

  • WCF: The type provided as the Service attribute could not be found
  • The type , provided as the Service attribute value in the ServiceHost directive could not be found.