Yes.
My client has a proxy server. That much i know. In my application I
make two kinds of calls that are affected by the proxy server
I finally got the webservice call working.
But my httpwebrequest.GetReponse() function call throws the above
error.
So here's what i do in the case it works..
//THIS WORKS
myWebService = new DataWebService();
IWebProxy proxyObject = new
WebProxy("ProxyAddress",prefs.BypassOnLocal);
proxyObject.Credentials = CredentialCache.DefaultCredentials;
myWebService.Proxy = proxyObject;
myWebService.WebServiceMethod(); // This works ...!!
//THIS DONT WORK
HttpWebRequest myRequest=
(System.Net.HttpWebRequest)System.Net.WebRequest.C reate(baseUrl);
IWebProxy proxyObject=new
WebProxy(ProxyAddress,prefs.BypassOnLocal);
proxyObject.Credentials = CredentialCache.DefaultCredentials;
myRequest.Proxy = proxyObject;
myRequest.GetResponse(); // fails !!
In the 2nd case, i am trying to read a webpage with XML on it, and
trying to parse it.
This works on all machines, except those that have proxy servers.
Would the manner in which the xml is being returned make a
difference.
We do return the xml as straight text. (performance reasons)
Any ideas?
The erorr of course is
The underlying connection was closed: Unable to connect to the remote
server
Would it make a difference if i did
myREquest.Proxy = WEbProxy.GetDefaultProxy() and then call the
GetResponse function ? Isn't what i am doing pretty much the same
thing ?
Any response is greatly appreciated.