Note that there are some explanatory texts on larger screens.

plurals
  1. POThe protocol 'net.tcp' is not supported issue regarding WCF
    primarykey
    data
    text
    <p>first i create a WCF service application where svc file is created. then i write my small service related code. <strong>when i hit F5 then wcf test client appear fine and when i select svc file and select view in browser option then everything works fine</strong>. initially i have only one endpoint in config file...that is <strong>wsDualHttpBinding</strong> then everything working fine.</p> <p>the moment i add another endpoint called <strong>netTcpBinding</strong> then problem start. after adding netTcpBinding endpoint in config file and when i try to browse svc file again in browser then i got error message called <strong>The protocol 'net.tcp' is not supported</strong> and when i hit F5 then wcf test client show error message called <code>** Cannot obtain Metadata from http://localhost:30996/ChatService.svc**</code></p> <p>i just do not understand why it happens when i add netTcpBinding. onething i like to say that i have not hosted my service anywhere. i just create WCF service application and add all the entries in web.config file and just press F5. is this the reason i am getting error because i have not hosted my services anywhere?</p> <p>so here is my config details as follows</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0" /&gt; &lt;/system.web&gt; &lt;system.serviceModel&gt; &lt;services&gt; &lt;service name="BBAChatService.ChatService" behaviorConfiguration="BBAChatService.ChatServiceBehavior" &gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress ="http://localhost:30996/ChatService.svc/"/&gt; &lt;add baseAddress ="net.tcp://localhost:30997/ChatService/"/&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint name="dual_bind" address="dual" binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IChatService" contract="BBAChatService.IChatService"&gt; &lt;/endpoint&gt; &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/&gt; &lt;endpoint name="tcp_bind" address="net.tcp://localhost:30997/ChatService" binding="netTcpBinding" bindingConfiguration="tcpBinding" contract="BBAChatService.IChatService"&gt; &lt;/endpoint&gt; &lt;endpoint address="net.tcp://localhost:30997/ChatService/mex" binding="mexTcpBinding" contract="IMetadataExchange"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="BBAChatService.ChatServiceBehavior"&gt; &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt; &lt;serviceMetadata httpGetEnabled="true"/&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="false"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;bindings&gt; &lt;netTcpBinding&gt; &lt;binding name="tcpBinding" maxBufferSize="67108864" maxReceivedMessageSize="67108864" maxBufferPoolSize="67108864" transferMode="Buffered" closeTimeout="00:00:10" openTimeout="00:00:10" receiveTimeout="00:20:00" sendTimeout="00:01:00" portSharingEnabled="true" maxConnections="100"&gt; &lt;security mode="None"&gt; &lt;/security&gt; &lt;readerQuotas maxArrayLength="67108864" maxBytesPerRead="67108864" maxStringContentLength="67108864"/&gt; &lt;reliableSession enabled="true" inactivityTimeout="00:20:00"/&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;wsDualHttpBinding&gt; &lt;binding name="WSDualHttpBinding_IChatService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00"/&gt; &lt;security mode="Message"&gt; &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default"/&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsDualHttpBinding&gt; &lt;/bindings&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>just tell me what is missing....what i need to change in my config file.</p> <p>here is the screen shot of my project solution explorer.</p> <p><img src="https://i.stack.imgur.com/aU1Cq.png" alt="enter image description here"></p>
    singulars
    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.
    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