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

  • Question

  •  

    I'm able to set the web reference and view the Search method, but for some reason during a call I'm getting the "no connection..." error.

     

    I include my app id in the sample...

     

    I don't see anyone else getting this so is this a proxy issue?

     

    Thanks,

    Dana

    Wednesday, January 21, 2009 8:51 PM

Answers

  •  

    Don't be too harsh on the IT guys - having been around during Code Red and Blaster, I can guarantee you that a good layer of security is a good thing Smile

     

    To deal with a proxy you need a few lines in the config file to specify some paramteres for System.Net

     

    The values depend on the proxy configurations. For example, to get SOAP calls to work within the MS corp firewall, we need the following blurb:

     

    Code Snippet

    <configuration>
       <system.net>
          <defaultProxy>
             <proxy
                proxyaddress = "http://<ourproxyaddress>:80"
                bypassonlocal = "true"
             />
          </defaultProxy>
       </system.net>
    </configuration>

     

     

    Whether JSON and XML over HTTP are affected depends again on the configuration of the proxy. They are slightly more resilient to high-security settings, though.

     

    HTH

     

    --Alessandro

     

    Thursday, January 22, 2009 10:53 PM

All replies

  • I assume that

    1. you are using SOAP
    2. you are behind a firewall/proxy

    Did you try other SOAP services?

    What does the HTTP dump look like?

     

    Did you send a traffic burst before seeing this (a sudden spike of traffic in the order of the tens or more per second)? If yes, you are likely to have triggered the DoS watchdog and got punted from the system. Just wait 24 hours.

     

    HTH

     

    --Alessandro

    Thursday, January 22, 2009 7:22 AM
  • Hi Alessandro,

     

    Yes, you assumed right. Being a developer I used to not have any restrictions, but IT has going security crazy lately. I couldn't access my own test server last week.

     

    My app didn't know how to deal with a proxy.

    But wouldn't I have this same issue with the other technologies if the application is a Window's application and the call is to an external source?

    I guess this wouldn't be the case of the JSON client technology, but still would happen with XML right?

     

    Thanks!

    Dana

     

    Thursday, January 22, 2009 3:38 PM
  •  

    Don't be too harsh on the IT guys - having been around during Code Red and Blaster, I can guarantee you that a good layer of security is a good thing Smile

     

    To deal with a proxy you need a few lines in the config file to specify some paramteres for System.Net

     

    The values depend on the proxy configurations. For example, to get SOAP calls to work within the MS corp firewall, we need the following blurb:

     

    Code Snippet

    <configuration>
       <system.net>
          <defaultProxy>
             <proxy
                proxyaddress = "http://<ourproxyaddress>:80"
                bypassonlocal = "true"
             />
          </defaultProxy>
       </system.net>
    </configuration>

     

     

    Whether JSON and XML over HTTP are affected depends again on the configuration of the proxy. They are slightly more resilient to high-security settings, though.

     

    HTH

     

    --Alessandro

     

    Thursday, January 22, 2009 10:53 PM