MSXML2.ServerXMLHTTP Dilemma

1.9k Views Asked by At

Writing a little C# console app (.Net 4.5) that uses the MSXML2.ServerXMLHTTP object to open a connection to a site and pull down a file. It works fine from home, but does not work from within our network here at work.

I have a VB6 app and a WSF (windows script host) app that do something almost identical and work fine from within our network. But when I try this little C# app it errors with message : a connection with the server could not be established. I have all of the correct references since it works fine from outside our network.

Any ideas on what could be preventing the connection from the C# .net app?

    MSXML2.ServerXMLHTTP x = new MSXML2.ServerXMLHTTP();
    x.setOption(SERVERXMLHTTP_OPTION.SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS,13056);
    x.open("GET", @"http://www.fededirectory.frb.org/updatesForACH.cfm?sinceDate=03/01/2014", false, null, null); 
    x.send();
    Console.WriteLine(x.responseText);
0

There are 0 best solutions below