WCF error

 

Error:   "The type ‘<name of the service class>’, provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found."

The above error was caused by my not providing the full path service name for the Service attribute of the ServiceHost.

Code Snippet:

image

The value for Service should follow the structure: namespace.class

image

Advertisements