2011-02-03 9 views
5

Windows 7 altında net.tcp'yi kullanarak bir hizmeti barındıramadığım bir durum var ama windows 2008 sunucusunda iyi çalışıyor. Ben WAS etkin ve yapılan aynı ayarları her iki pencere 7 ve pencereler sunucusunda ama nedense o pencerelerde çalışmıyor olması 7. istemci tarafında olsun hatadır:IIS'de Windows 7 ve Windows 2008 Server altında net.tcp wcf hizmetlerini barındırma konusunda bir fark var mı?

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

Ve içinde

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 hem Windows 7 ve pencereler 2008. Herhangi bir ipuçları üzerinde hizmet için aynı tam da: olay günlüğü Ben hizmet için aşağıdaki hata var?

cevap

0

Çalışıyor gibi görünüyor. Şimdi yeni bir bilgisayarım var ve hiç sorun değil tekrar denedim. Bu yüzden, IIS7 ile Win 7'de net.tcp dosyasını barındırmak için iyi çalışır.

0

Zaten bunu o zamandan beri çözdüğümü tahmin ediyorum ... Portsharing ile durum etkinleştirilmemiş miydi? http://msdn.microsoft.com/en-us/library/aa395195.aspx

+0

Aslında makinemde çalışmaya başlamadım, çalışmasını sağlamak için onu test sunucusuna dağıtmak zorunda kaldım. –

+0

ve bağlantı yapılandırması değildi, çünkü bunu yapılandırdım. –

9

ben istisna mesajı adımın ne olacağı için hiçbir ipucu verir

... NetTcpPortSharing service: . 

sonlanan bu aynı sorunu, başlamıştı.

O Net.Tcp Dinleyici Adaptör hizmet NET 3 işaret edildi ve Net.TCP Bağlantı Noktası Paylaşımı Hizmeti çabuk

çalıştırarak düzeltmek başardı .NET 4

bağlantı verdiği ortaya çıktı

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

Çözüm olabilir, bunu doğrulamak için artık o sunucuya sahip değilim. –

+0

Bu komut satırı aracı nedir? -r ne yapar? Bir hizmetin 3'e, diğerinin 4'e işaret ettiğini nasıl buldunuz? – MorganTiley

+0

Ahh Anlıyorum - hizmetlerin dosya yoluna bakarsanız v3'e işaret ederken v3'e işaret ediyor görebilirsiniz. Komutu çalıştırdım ve tamir ettim. Teşekkürler hortman! – MorganTiley