When developing WCF silverlight 4 services to contact data, I received the following error:
The contract name '’ could not be found in the list of contracts implemented by the service ‘’.
I wanted to just give a heads up to those wondering whats going on. Make sure when you add the endpoint, your contract points to the Interface instead of just the service it self. For example:
<services>
<service behaviorConfiguration="PortalSilverlight.Web.Services.ServicesBehavior" name="PortalSilverlight.Web.Services.Services">
<endpoint address="http://localhost:3454/Services/Services.svc" binding="wsHttpBinding" contract="PortalSilverlight.Web.Services.IServices" />
</service>
</services>
Notice in the contract attribute I am pointing towards the IService instead of just the Services.svc file. Took me a couple of hours to figure this out.
If you liked this post, please be sure to subscribe to my
RSS Feed.