2009-08-20 13 views
0

私はWindowsホスティングサービス内でWCFサービスをホストしています。Windows 2008上のWindowsサービス内でWCF(mex endpoint)サービスをホストする

私はWHSを起動すると、私は次のエラーを取得:


The ChannelDispatcher at 'net.tcp://mysecreturl/' with contract(s) '"IClass"' is unable to open its IChannelListener. 

System.InvalidOperationException: A registration already exists for URI 'net.tcp://mysecreturl/Indexer/'. 
    at System.ServiceModel.Channels.UriPrefixTable`1.RegisterUri(Uri uri, HostNameComparisonMode hostNameComparisonMode, TItem item) 
    at System.ServiceModel.Channels.ConnectionOrientedTransportManager`1.Register(TransportChannelListener channelListener) 
    at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) 
    at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) 
    at System.ServiceModel.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout) 
    at System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout) 
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) 
    at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) 

    at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) 
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) 
    at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) 
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) 
    at VBoD.Search.WindowsServiceHost.WindowsServiceHost.OnStart(String[] args) in D:\......:line 29 

System.ServiceModel 

は、Windowsでこれらのどこにいるか、私は/プロセスを停止起動したとき、彼らは、登録および未登録ていますか?

+0

サービスエンドポイントと同じURIでmexエンドポイントをホストしようとしていますか? –

+0

この問題は設定とは何の関係もないことは間違いありませんか? WCFの設定を投稿しなかったのはなぜですか?また、完全な例外のようには見えません。全部を投稿してください。たぶん例外をキャッチし、ex.ToString()の結果を投稿します。 –

答えて

2

Mexには異なるエンドポイントを使用してください。おそらくnet.tcpポートとは異なるポート番号が必要になるでしょう。 net.tcpポートが8000の場合は、

<endpoint address="net.tcp://mysecreturl:8001/Mex" 
      contract="IMetadataExchange" /> 
+0

バインディングを忘れないでください! binding = "mexTcpBinding" –

関連する問題