ServiceHost only supports class service types.

Posted by SheoNarayan under Error and Solution on 3/17/2011 | Points: 10 | Views : 7772 | Status : [Administrator] | Replies : 0

You may get following error while trying to create instance of ServiceHost in the Console application.

ServiceHost only supports class service types. 


Solution

This error generally appears when you are trying to add a WCF Service with Service Reference and trying to create ServiceHost using it. In order to resolve this error, you need refer your WCF service by right clicking the Reference and adding it as an Project.

Hope this hels.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

(No response found.)

Login to post response