Καλησπέρα σας,
Έχω το παρακάτω πρόβλημα και θα ήθελα την γνώμη σας...
Έφτιαξα ένα WCF service library. Το τρέχω από το ίδιο μηχάνημα serv-client, και όλα είναι ωραία, με δύο συναρτήσεις. Στέλνω και τιμές παίρνω απάντηση. Περίφημα.
Έχω το WCF service library στο μηχάνημα. Και άπο δεύτερο μηχάνημα ξεκινάω το wcftestclient.exe
Βρίσκω το service. Βλέπω τις δύο πρός κλήση συναρτήσεις.
Δεν έχω proxy! Δεν έχω firewall.... To localhost:8732, είναι απάντηση του remote(!) προφανώς. Αφού στο wcfTestClient, του ορίζω το 172.16.1.138 ip να βρει τις υπηρεσίες....
Δίνω λοιπόν εντολή για μία απο αυτές και το μήνυμα είναι :
Could not connect to net.tcp://localhost:8732/WCFEAFDSS/AlgoBox. The connection attempt lasted for a time span of 00:00:01.9860000. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8732.
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.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at IAlgoBoxSrv.VerifyEAFDSS()
at AlgoBoxSrvClient.VerifyEAFDSS()
Inner Exception:
No connection could be made because the target machine actively refused it 127.0.0.1:8732
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)