この記事に従って、WCF を使用して 2 台のマシン間でメッセージを送信するアプリケーションを構築しようとしています: http://www.youtube.com/watch?v=1-BYIQQYwjQ
すべての手順を実行した後、サーバーとクライアントが同じマシンで実行されている場合、すべて正常に動作します。クライアント (単純なコンソール アプリケーション) を別のマシンに移動したときに、localhostをhttp://localhost:8733/MySampleWCFService/
自分のマシンに変更しIP address
ました (両方のマシンが同じネットワーク内にあり、ファイアウォールが実行されていませんが、エラーが発生しました エンドポイントがリッスンしていませんでした
これは私の App.config です:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service name="WCFServiceHostingInWinService.MySampleWCFService">
<endpoint
name="ServiceHttpEndPoint"
address=""
binding="basicHttpBinding"
contract="WCFServiceHostingInWinService.IMySampleWCFService">
</endpoint>
<endpoint
name="ServiceMexEndPoint"
address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8733/MySampleWCFService/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information,
set the value below to false before deployment -->
<serviceMetadata httpGetEnabled="True"/>
<!-- 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 -->
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
多分それは許可の問題でしょうか?