function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JamesT77JamesT77 

No connection could be made because the target machine actively refused it

Hi
 
I have a strange problem with loging using the enterprise web service.
 
I created a new test website and using the .net examples managed to login and did some various tasks with the api
 
Now i have moved this code into our development website im getting the error message below when i try to login.
 
"No connection could be made because the target machine actively refused it".
 
The code in either project is identical but in the test website login is successfull and in the development website it is unsucessfull.
 
The difference between them is that the test website is a file system website running through VS own web server and the development website is on my local iis.
 
Is it a problem with firewall settings?
 
do i have to open a port for the apex api webservice to connect? and if i do what is the port?


Message Edited by JamesT77 on 07-24-2008 05:58 AM
SuperfellSuperfell
Most likely a network firewall issue. the API uses HTTPS, so port 443.
JamesT77JamesT77

I have opened the port on the firewall and im still getting this error.

it is failing on

Dim log As LoginResult = salesForceService.login(username, password)

The SalesForceService.Url is "https://test.salesforce.com/services/Soap/c/13.0"

and the username & password are definately correct.

Will using source control have an effect?

SuperfellSuperfell
No, source control will have no effect. Its some sort of networking issue, either your firewall is blocking it, or you're configured to use a proxy server that's not running, etc, perhaps you should get some help from one of your network admins.
JamesT77JamesT77

My network admins have asked me if the API is proxy aware?

as our destops force outbound 80/443 connections via a proxy.

SuperfellSuperfell
For .NET you can either programatically set the proxy settings on the client stub, or set it globally for your app via the app.config file, see the .NET docs for more details.