Whenever I try to add a web reference to the WCF service in my project, I get an error:
'The HTML document does not contain Web service discovery information.
There was an error downloading 'http://localhost/OFTestSite/Service.svc/$metadata'.
The request failed with HTTP status 400: Bad Request.'
When I browse Service.svc directly from the IIS, the page opens with the statement 'Metadata publishing for this service is currently disabled.'
I followed all the steps correctly to make metadata publishing enabled, but still I get the same message and I'm not able to add the web refernce.
Could anyone please help me?
(I am using VS 2010 Professional on Windows XP machine with IIS 5.1)
View Complete Post