Playing around with WCF web services in VS 2010 and .NET Framework 4.
When I run the WCF Test Client across the web service I get the above error. The service still works but there’s an error symbol (a ! in a red circle on the LHS).
Mr. Google to the rescue and you need to change the framework config file here:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
Comment out the “endpoint” section i.e.
<client>
<!-- <endpoint address="" binding="netTcpRelayBinding" contract="IMetadataExchange" name="sb" /> -->
<metadata>
Problem solved.
Even though it still works, I hate these niggly errors in case I’ve screwed up
Enjoy!
1 comment:
Really.. Thanks for your post
Post a Comment