Pages

Thursday, October 6, 2011

Error : WCF Service Host cannot find any service metadata.

Error : WCF Service Host cannot find any service metadata. This may cause the client application to run improperly. Please check if metadata is enabled. Do you want to exit?

Ans :-I got this error and in my case the problem was the value in the service name field did not actually match the namespace of the class actually implementing the operation contract in app.config file see the underlined text below. ist is the namespace and after dot is the actula name of the class which implements it. Just check the namespace for the name and the contract.

<services>
service name="WCFHelloWorld.HelloWorldService" behaviorConfiguration="WCFHelloWorld.Service1Behavior">