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?
Related
I've setup an Ubuntu image on VirtualBox on a Windows 10 host. On the Ubuntu guest I've installed Redis which runs on port 6379 (TCP) by default.
I tried to follow the tutorial from youtube https://www.youtube.com/watch?v=rXQRqek3kLw but i get a "No connection could be made because the target machine actively refused it 127.0.0.1:6379".
I've setup port forwarding using virtualbox and setting redis.conf.
What should I do?
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 ?
Built a simple MVC3 web app to ping a few of our servers for small bits of JSON data and report in a quick UI as a monitoring solution, deployed on Windows 2008 to IIS 7.
All of the outbound HTTP requests via the WebRequest class end up in a error: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25946
Code works fine when running on a console app on the same server, or as console or web app running on a dev machine. Its only when running as a web app in IIS on the production server that this error happens.
The web app can connect to SQL server and MongoDB but fails at any plain HTTP request. Using an empty WebProxy set to localhost. (with the period) changes the reported error to a 404.
Try looking at the Host (or LMHost) files and make sure that there are no issues wit them.
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.
I wrote a webservice by aspx in vs2008 and a windows applocation by c# in vs2008. Yhe winapp uses the webservice. I put my webservice website in wwwroot and now I can access it through local net. I create exe file from my win app.My problem is: when I want to run my winapp on another computer in that local net, one exception occurred: no connection could be made because the target machine actively refused it.127.0.0.1:1234.
Please help me to figure out it.
Also I've changed my IIS server port to 1234.And this port state is listening.And my webbsite is on the 10.10.10.1 IP Addr.
127.0.0.1 is the loopback address. This address allows a local machine to talk to itself. It is only useful if both your client and service are on the same machine. If you run your client on a different machine, then you need to be sure that it is using the "real" address of the machine hosting the service.
You probably have 127.0.0.1 hardcoded in a service definition in your app.config file. Find this and change it to use the correct address.
If that is your error message.
no connection could be made because the target machine actively refused it.127.0.0.1:1234
and you are
run my winapp on another computer in that local net
Then you are pointing your 'winapp' at the local computer when you should be pointing it at 10.10.10.1