Hello,
I have a simple WCF4 REST service which is working fine when using a browser. However, when I try to add a service reference to it from another project in VS2010, I get an error saying that, “The HTML document does not contain Web service discovery information.”
My question is, since WCF4 has a new simplified config model, I can’t find any working examples of how to turn on a metadata exchange endpoint for the currently exposed standard endpoint.
I tried adding a entry as shown below but it did not solve the problem.
Here’s my config:
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<standardEndpoints>
<webHttpEndpoint>
<!--
Configure the WCF REST service base address via the global.asax.cs file and the default endpoint via the attributes on the <standardEndpoint> element below
-->
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true"/>
</webHttpEndpoint>
<mexEndpoint>
<standardEndpoint name=""/>
</mexEndpoint>
</standardEndpoints>
</system.serviceModel>
Any assistance would be greatly appreciated.
Rick