Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF:Cannot obtain metadata error
    primarykey
    data
    text
    <p>I have my service hosted on IIS7 with net.tcp as enabled protocol.When I browse the service from IIS I can see the service page and its tcp address but if I use that address with WCF test client or with any application as service reference I get this error in wcf client </p> <pre><code>Error: Cannot obtain Metadata from http://localhost:808/MyService/MyService.svc?wsdl If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455 WS-Metadata Exchange Error URI: http://localhost:808//MyService/MyService.svc?wsdl Metadata contains a reference that cannot be resolved: 'http:/localhost:808/MyService/MyService.svc?wsdl . There was no endpoint listening at 'http:/localhost:808/MyService/MyService.svc?wsdl that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. The remote server returned an error: (404) Not Found.HTTP GET Error URI: http:/localhost:808/MyService/MyService.svc?wsdl The HTML document does not contain Web service discovery information. </code></pre> <p>I am surprised when I put net.tcp address in wcf client why the error is about http only </p> <p>my service config is</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0"/&gt; &lt;httpRuntime maxRequestLength="102400" /&gt; &lt;/system.web&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;netTcpBinding&gt; &lt;binding name="TcpBinding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" closeTimeout="10:00:00" sendTimeout="10:00:00" openTimeout="10:00:00" receiveTimeout="10:00:00" maxReceivedMessageSize="2147483647" portSharingEnabled="true" &gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;security mode="None"/&gt; &lt;reliableSession enabled="true" inactivityTimeout="10:00:00" /&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service behaviorConfiguration="MyService.MyServiceBehaviour" name="MyService.MyService"&gt; &lt;endpoint address="" binding="netTcpBinding" bindingConfiguration="TcpBinding" name="EndPointTCP" contract="MyService.IMyService" isSystemEndpoint="false" /&gt; &lt;endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="MyService.MyServiceBehaviour"&gt; &lt;serviceMetadata httpGetEnabled="false" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt; &lt;dataContractSerializer maxItemsInObjectGraph="2147483647" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; &lt;system.webServer&gt; &lt;modules runAllManagedModulesForAllRequests="true" /&gt; &lt;directoryBrowse enabled="true" showFlags="Date, Time, Size, Extension, LongDate" /&gt; &lt;/system.webServer&gt; &lt;/configuration&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload