svcutil.exe. Error: Cannot obtain Metadata from http://localhost/WsdlTest/Wsdltest.svc?wsdl RRS feed

  • Question

  • User-1977395405 posted

    Hi. I'm new to WCF, working with VS2010 and .NET 4.0, and trying to create a http data service. I've successfully published my WCF service to my local version of IIS (IIS 7.5 on Windows 7). But I can't get svcutil.exe to work. I've been banging my head on the wall, going through all the documentation on exposing service endpoints for metadata, and it finally occurred to me to simply put "http://localhost/wsdltest/WsdlTest.svc?wsdl" in my browser. And presto, I got back an xml document that looks exactly like the wsdl documents I'm used to from .asmx web services. 

    So the problem isn't with the service exposing the metadata at all. The problem is that for some reason the svcutil.exe utility can't see it. Anyone have any ideas as to what's going wrong? This project is named "WsdlTest" because after trying for half a day to get svcutil.exe. working with my professional project, I unloaded it and created a plain vanilla WCF service and published it just to remove all extraneous factors. This WsdlTest is the plain vanilla WCF Service Application template, and that is all it is. Nothing, absolutely nothing, has been done to it outside of a change-all in the solution from "Service1" to "WsdlTest".

    Wednesday, January 30, 2013 5:59 PM


All replies