Can NOT connect to Windows Service with Windows 7
Posted on 2011-04-27
I am running a window service that was built with C# in Visual Studio 2005.
Attempts to connect to the Windows Service fail when running on Window 7.
Why is this? See error messages below....
Operating System Status:
It has worked with Window 7 Ultimate 32 bit (not sure how?), and XP
It has failed with Win7 Pro 32-bit, Windows 7 Ultimate 64 bit, Windows 7 Enterprise 64 bit
The error messages and stack trace can be seen below:
Could not connect to net.tcp://localhost:8252/xxxxxxxxxxx/Control. The connection attempt lasted for a time span of 00:00:01.0135255. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8252.
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uir, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uir, TimeSpan timeout)
at System.ServiceModel.Channels.TracingConnectionInitiator.Connect(Uri uir, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstiblishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
EXCEPTION THRWON AT:
At System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage ret Msg)
At System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, int32 type)
I have seen online posts on this topic that have not solve the issue.
What else can I try...?
Thanks for your insight ! !