Я пытаюсь установить соединение "точка-точка", используя WCF в Windows 7x64 и Studio 2012 Professional. WPF перестает работать, когда ноутбук использует беспроводную связь.
Мой компьютер подключается к сетевому коммутатору по кабелю Ethernet, и мой ноутбук подключается к той же сети с помощью проводной связи, работает WCF DOES.
Но,
Когда мой компьютер подключается к сетевому коммутатору по кабелю Ethernet, а мой ноутбук подключается к той же сети, используя WIRELESS, WCF НЕ работает.
И я обновил номер порта между проводным и беспроводным.
Любая помощь в ответе очень ценится.
Ошибка заключается в следующем:
Error()
{
System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://100.100.1.90:9000/test_robot_client. The connection attempt lasted for a time span of 00:00:01.0430000. TCP error code 10061: No connection could be made because the target machine actively refused it 100.100.1.90:9000. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 100.100.1.90:9000
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
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.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
}
Я вижу вышеуказанную ошибку, используя Catch (Exception ex) при попытке отправить команду WCF.
Благодарю!
У меня есть исправление. Я где-то читал и кто-то упоминал об открытии порта 808. Так что я сделал это, и он работает! Спасибо всем за помощь!