5

Windows 7でnet.tcpを使用してサービスをホストできない状況がありますが、Windows2008サーバーでは正常に機能します。WASを有効にし、Windows7とWindowsServerの両方で同じ設定を行いましたが、何らかの理由でWindows7では機能しません。クライアント側で発生するエラーは次のとおりです。

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()

また、イベントログで、サービスに対して次のエラーが発生しました。

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

web.configは、Windows7とWindows2008の両方のサービスでまったく同じです。手がかりはありますか?

4

3 に答える 3

9

私はこれと同じ問題を抱えていました。例外メッセージは次のように終わります。

... NetTcpPortSharing service: .

そこからどこへ行くのか見当がつかない。

Net.Tcpリスナーアダプタサービスが.NET3を指し、Net.TCPポート共有サービスが.NET4を指していることが判明しました。

実行することですばやく修正できました

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\ServiceModelReg.exe -r
于 2011-10-14T14:31:56.083 に答える
0

動作しているようです。私は今新しいコンピューターを持っていて、まったく問題なく再試行しました。したがって、IIS7を使用してWin7でnet.tcpをホストすることは問題なく機能するはずです。

于 2011-06-17T14:22:34.910 に答える
0

それ以来、あなたはすでにそれを解決していると思います...ポートシェアリングが有効になっていない場合でしたか? http://msdn.microsoft.com/en-us/library/aa395195.aspx

于 2011-04-08T20:26:30.357 に答える