Note that there are some explanatory texts on larger screens.

plurals
  1. POnet.tcp binding metadata problem
    text
    copied!<pre><code>&lt;system.serviceModel&gt; &lt;services&gt; &lt;service name="SUR.Core.Service.Implementation.SURDirectoryService" behaviorConfiguration="DefaultServiceBehavior"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="net.tcp://127.0.0.1:8731/ISURDirectoryService"/&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint address="" binding="netTcpBinding" bindingConfiguration="DefaultDirectoryServiceBindConfig" contract="SUR.Core.Service.Facade.ISURDirectoryService"/&gt; &lt;endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/&gt; &lt;/service&gt; &lt;service name="MSS.Core.Service.Implementation.MSSDirectoryService" behaviorConfiguration="DefaultServiceBehavior"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="net.tcp://127.0.0.1:8731/IMSSDirectoryService" /&gt; &lt;add baseAddress="http://127.0.0.1:8732/IMSSDirectoryService" /&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint address="" binding="netTcpBinding" bindingConfiguration="DefaultDirectoryServiceBindConfig" contract="MSS.Core.Service.Facade.IMSSDirectoryService"/&gt; &lt;endpoint address="Person" binding="basicHttpBinding" bindingConfiguration="StreamedServicesBinding" contract="MSS.Core.Service.Facade.IMSSPersonService"/&gt; &lt;endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;customBinding&gt; &lt;binding name="MetadataExchangeTcpBinding"&gt; &lt;tcpTransport portSharingEnabled="True" /&gt; &lt;/binding&gt; &lt;/customBinding&gt; &lt;netTcpBinding&gt; &lt;binding name="DefaultDirectoryServiceBindConfig" maxReceivedMessageSize="1048576" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:05:00"&gt; &lt;security mode="None"&gt;&lt;/security&gt; &lt;/binding&gt; &lt;binding name="mexBinding" portSharingEnabled="true"&gt; &lt;security mode="None"/&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;basicHttpBinding&gt; &lt;binding name="StreamedServicesBinding" transferMode="StreamedResponse" maxReceivedMessageSize="10067108864" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:05:00" maxBufferSize="500" &gt; &lt;security mode="None"&gt;&lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="DefaultServiceBehavior"&gt; &lt;serviceMetadata /&gt; &lt;dataContractSerializer maxItemsInObjectGraph="6553600" /&gt; &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt; &lt;!--&lt;serviceMetadata httpGetEnabled="True"/&gt;--&gt; &lt;serviceThrottling maxConcurrentCalls="30" maxConcurrentSessions="30" maxConcurrentInstances="30"/&gt; &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --&gt; &lt;serviceDebug includeExceptionDetailInFaults="True" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; </code></pre> <p>Here is my WCF configuratio but when i try to add service reference to</p> <pre><code>net.tcp://127.0.0.1:8731/IMSSDirectoryService </code></pre> <p>I get an error:</p> <blockquote> <p>Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:8731/IMSSDirectoryService'.</p> </blockquote> <p>If the service is defined in the current solution, try building the solution and adding the service reference again. Please help me to understand my problem.</p>
 

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