2011-02-03 29 views
5

私は、Windows 7の下でnet.tcpを使用してサービスをホストできない状況がありますが、Windows 2008のサーバでうまく動作します。IISのWindows 7およびWindows 2008 Serverでは、net.tcp wcfサービスのホスティングに違いはありますか?

System.ServiceModel.EndpointNotFoundException: The message could not be dispatched because the service at the endpoint address 'net.tcp://localhost:908/TcpTest/MySuperService.svc' is unavailable for the protocol of the address. 

Server stack trace: 
    at System.ServiceModel.Channels.ConnectionUpgradeHelper.DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, Uri via, String contentType, TimeoutHelper& timeoutHelper) 
    at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper) 
    at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper) 
    at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout) 
    at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout) 
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) 
    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout) 
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) 
    at System.ServiceModel.Channels.CommunicationObject.Open() 

そして中:私はクライアント側で取得7.エラーがあるWAS有効、との両方のWindows 7およびWindows Serverで同じ設定をしたが、何らかの理由でそれが窓では動作しませんしていますweb.configファイルは、両方のWindows 7およびWindows 2008の任意の手掛かり上のサービスのためにまったく同じです

An error occurred while trying to listen for the URL '/LM/W3SVC/9/ROOT/TcpTest'. This worker process will be terminated. 
Sender Information: net.tcp 
Exception: System.ServiceModel.WasHosting.TcpAppDomainProtocolHandler/24230272 
Process Name: System.ServiceModel.CommunicationException: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: . 
    at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Register() 
    at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Open(Boolean isReconnecting) 
    at System.ServiceModel.Channels.SharedConnectionListener.StartListen(Boolean isReconnecting) 
    at System.ServiceModel.Channels.SharedTcpTransportManager.OnOpenInternal(Int32 queueId, Guid token) 
    at System.ServiceModel.Activation.HostedTcpTransportManager.Start(Int32 queueId, Guid token, Action messageReceivedCallback) 
    at System.ServiceModel.WasHosting.TcpAppDomainProtocolHandler.OnStart() 
    at System.ServiceModel.WasHosting.BaseAppDomainProtocolHandler.StartListenerChannel(IListenerChannelCallback listenerChannelCallback) 
Process ID: w3wp 

:?私はサービスのために、次のエラーを得たイベントログ

答えて

0

動作しているようです。私は今、新しいコンピュータを持っていて、全く問題なく再試行しました。だから、IIS7でwin7のホストnet.tcpにうまく動作するはずです。

0

あなたはすでにそれを解決していると思います... portsharingが有効になっていませんでしたか? http://msdn.microsoft.com/en-us/library/aa395195.aspx

+0

実際に私のマシンで動作するようにはなっていませんでした。実際に動作させるには、テストサーバーにそれを配備する必要がありました。 –

+0

私はそれを設定して以来、それはポート共有ではありませんでした。 –

9

私はどこそこから行くには、no手掛かりを与えない例外メッセージが

... NetTcpPortSharing service: . 

に終了したこれと同じ問題を、持っていました。

これはNet.Tcpリスナーアダプターサービスは、.NET 3に指していたし、Net.TCPポート共有サービスは、私はすぐに

を実行することによってそれを修正することができました.NET 4

に指していたことが判明しました

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\ServiceModelReg.exe -r 
+0

解決策になるかもしれませんが、私はもうそれを検証するためのサーバーを持っていません。 –

+0

コマンドラインツールとは何ですか? -rは何をしますか? 1つのサービスが3を指していて、もう1つのサービスが4を指していたのはどうでしたか? – MorganTiley

+0

ああ、私が見る - あなたが見ることができるサービスのファイルパスを見ると、1つはv3を指していて、もう1つはv4を指しています。私はコマンドを実行し、それを修正しました。ありがとう! – MorganTiley

関連する問題