K
Kristof Thys
Hello,
I'm developing a C# - windows forms application. To get some information
for my application, I'm connecting to an URL, wich gives me XML
generated using php.
With 90% of the users, this code just works fine:
But with some users, I get an exception saying: The underlying
connection was closed: Unable to connect to the remote server
I'm sure that there is no firewall on, and I've asked the user to
disable any proxy settings...
Is there something that I'm overseeing or that can be improved to this code?
thanks in advance,
Kristof
I'm developing a C# - windows forms application. To get some information
for my application, I'm connecting to an URL, wich gives me XML
generated using php.
With 90% of the users, this code just works fine:
Code:
WebRequest request = WebRequest.Create(URL);
try
{
request.Timeout = 50000;
WebResponse response = request.GetResponse();
}
catch(Exception ex)
{
WriteToLog(LogType.Info,ex.Message.ToString());
response = null;
}
But with some users, I get an exception saying: The underlying
connection was closed: Unable to connect to the remote server
I'm sure that there is no firewall on, and I've asked the user to
disable any proxy settings...
Is there something that I'm overseeing or that can be improved to this code?
thanks in advance,
Kristof