dear all..
i am connecting to a web service to get a specific results and my windows applications download many files according to response from web-service
the problem appears only when using a proxy in my internet explorer using program "analog proxy"
this is the steps i made:
tools->internet options->connections->Lan settings-> and i checked use proxy server for Lan..... with address: 192.168.1.240 and port:6588
my code to connect to web-service is:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://www.o-survey.com");
IWebProxy proxy = request.Proxy;
if (proxy != null)
{
MessageBox.Show("Proxy: {0}"+ proxy.GetProxy(request.RequestUri));
}
else
{
MessageBox.Show("Proxy: {0}Proxy is null; no proxy will be used");
}
WebProxy myProxy = new WebProxy();
Uri newUri = new Uri("http://162.168.1.240:6588");
myProxy.Address = newUri;
myProxy.Credentials = new NetworkCredential("john", "johngra");
request.Proxy = myProxy;
and in app.config i put the following line
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true" >
</defaultProxy>
</system.net>
i got this error:
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.240:6588
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SystemTray.SQSClient.StockQuoteService.getQuote(String symbol, String terminal) in D:\Graphicano\c# projects\SystemTray\SystemTray\Web References\SQSClient\Reference.cs:line 84
at SystemTray.Form1.checker(Int32 updater_action, Int32 show_button) in D:\Graphicano\c# projects\SystemTray\SystemTray\MainForm.cs:line 1108
any idea for solving this problem please as soon as possible, i need to solve it quickly
thanks in advance