Note that there are some explanatory texts on larger screens.

plurals
  1. POA question about WCF when using app.config
    text
    copied!<p>I am a beginner of WCF,I write a simple example of it,and the app.config files of my application as follows:</p> <p>Host: </p> <pre><code>&lt;services&gt; &lt;service name="WCFService.Service.CalculatorService" behaviorConfiguration="calculatorBehavior"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="http://10.1.9.210:8080/GeneralCalculator"/&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint address="" binding ="basicHttpBinding" contract="WCFService.Contract.ICalculator"&gt;&lt;/endpoint&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="calculatorBehavior"&gt; &lt;serviceMetadata httpGetEnabled="true" httpGetUrl=""/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; </code></pre> <p> </p> <hr> <p>Client: </p> <p></p> <pre><code>&lt;client&gt; &lt;endpoint address="http://10.1.9.210:8080/GeneralCalculator/CalculatorService" binding ="basicHttpBinding" contract="WCFService.Contract.ICalculator" /&gt; &lt;/client&gt; </code></pre> <p></p> <p></p> <p>When I run my application,there is an exception: "The message with To '<a href="http://10.1.9.210:8080/GeneralCalculator/CalculatorService" rel="nofollow noreferrer">http://10.1.9.210:8080/GeneralCalculator/CalculatorService</a>' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree."</p> <p>I guess there are some wrong with my configuration file and please give me some hint, </p> <p>thanks :)</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