WCF サービス ライブラリからクライアント プロキシを生成しようとしています。Windows XP Pro ワークステーションで VS2005、.NET 3.0 を使用しています。WCF サービスは Windows サービスでホストされます。Windows サービスをコンソール アプリケーションとして実行すると、問題は発生しません。そのアドレスに対して svcutil.exe を実行すると、プロキシが生成されます。ただし、そのサービスをリリース モードでコンパイルし、InstallUtil を使用してワークステーションにインストールすると、「エラー: net.tcp://localhost:9090/Service2 からメタデータを取得できません」というエラーが表示されます。これらは、サービスの app.config を使用している設定です
<behaviors>
<endpointBehaviors>
<behavior name="Test2">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="serviceBehaviour">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata />
<!--<serviceMetadata httpGetEnabled="true" />-->
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="TestBinding2" inactivityTimeout = "00:30:00" openTimeout="00:30:00"
receiveTimeout="00:30:00"
sendTimeout="00:30:00">
<binaryMessageEncoding />
<tcpTransport transferMode="StreamedResponse" />
</binding>
</customBinding>
</bindings>