I've created a windows form app in visual studio 2015.
I'm running on windows 10.
My app will connect to a UDP Socket, using UdpClient object, on the client machine.
The app then will do a receive on the port, external system sends message to the port.
When running debug within Visual Studio 2015 the app works with no issues.
When I run either the debug or release .exe from the bin folder a SocketException occurs on the receive.
Error:
ErrorCode=10060
HResult=-2147467259
Message=A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
NativeErrorCode=10060
Related
For me all I do is open Visual Studio, click on connect to Mac, and then I get this error message:
The Broker initialization exceeded the timeout of 60000 millisecs
without receiving confirmation from the Broker.
I have tried restarting my Mac and PC and creating a new project. I have the latest versions of VS installed on both my Mac and PC. This issue is really annoying so any help would be much appreciated.
I am running my TCPIP remoting server application (.net version 4.5.1, VS 2013) in windows 10 but I got one server side crash given below, infact it’s perfectly working in windows 7
We have checked port details by "netstat" command and found that the server side port(9092 is my server port) is in listening state, even though we got following error
Error : System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:9092
I hope the issue will come when the client try to register on the server listening port.
Is there any change in TCPIP connection/security settings in Windows 10 ?
I am using MS Visual Studio 2013 Professional Edition with Update 3. When I try to deply a WP 8.1 to the mobile device, I am facing the following errors.
Error: DEP3100: Attempts to stop the application on target machine "127.0.0.1" failed.
This may cause the deployment to fail.
The network connection to the Visual Studio Remote Debugger has been closed.
Error DEP2300: The deployment tool (TailoredDeploy.exe) failed to run on the target machine "127.0.0.1".
The object invoked has disconnected from its clients.
I have earlier deployed application to this mobile device.
Why am I facing such an error now?
I manually uninstalled the app. And when I tried to re-install the app, the same error occurred. But the solution was more simpler than I thought. I restarted the phone after switching it off. Voila. Worked. I installed the app once again. Successfully debugged the application & was able to deploy it to the device.
PS: But still I don't know why this error occurred.
I tried this tutorial for .NET TopShelf: http://lourenco.co.za/blog/2013/08/wcf-windows-service-using-topshelf-and-servicemodelex/ and everything works fine on localhost, but when I run Client app on other PC with host IP in app.config aplication return an exception in Program.cs in Client app in line:
var response = proxy.Service.Introduce(request);
The error message says: "tcp error code 10061 no connection could be made because the target machine actively refused it"
I've got windows firewall off. What can I do to connect two computers in LAN network using TopShelf?
Can i consume WCF service inside windows mobile 6 project??
I spend many days to solve my problem of adding web reference of WCF to smartdevice project
but the smae error appears.
There was an error downloading 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8731
There was an error downloading 'http://localhost:8731/Desi
So i ask is it possible to consume WCF from windows mobile 6 project??
I create WCF and windows mobile projects in visual studio 2008 and when i "add web reference" to the mobile project to add the WCF and put the URL i get this error
"There was an error downloading 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8731
There was an error downloading 'http://localhost:8731/Desi"
however i change the "localhost" to my computer IP address the same error appeared.
How can i write the URL that will be put in the client application.
The important part of the error is "Unable to connect"
This means that the add service reference has tried to make a call to the service, but the call failed.
The most likely reasons for this are:
The service is not running
The metadata exchange (mex endpoint) is not enabled
It looks like you're trying to get the Mex, but the service isn't running on the dev machine:
Try going to this url in your browser
http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex
you'll probably get the same error (machine actively refused it)
Make sure the service is started.