Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create WCF proxy without svc file which is hosted in windows apps
    primarykey
    data
    text
    <p>i have two apps. one is winform server end where wcf service is hosted and another is winform client app where i have to add service reference.there is no any svc file. so when i am trying to create service proxy at winform wcf client end just entering the url like </p> <p><strong>http://localhost:7998/WPFHost/ or net.tcp://localhost:7997/WPFHost/</strong> for adding service through service reference then getting error. <strong>Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:7997/WPFHost/'.</strong></p> <p>here i am pasting my full app.config file data of wcf server end where wcf has been hosted. please guide me what is wrong in the app.config for which adding ervice reference not being able to add.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;services&gt; &lt;service name="WCFService.Service" behaviorConfiguration="behaviorConfig"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="net.tcp://localhost:7997/WPFHost/"/&gt; &lt;add baseAddress="http://localhost:7998/WPFHost/"/&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint address="tcp" binding="netTcpBinding" bindingConfiguration="tcpBinding" contract="ServiceAssembly.IChat"/&gt; &lt;endpoint address="net.tcp://localhost:7996/WPFHost/mex" binding="mexTcpBinding" contract="IMetadataExchange"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="behaviorConfig"&gt; &lt;serviceMetadata httpGetEnabled="true" httpGetUrl=""/&gt; &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt; &lt;serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100"/&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" 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;/bindings&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre>
    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.
 

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