A
Anonymous
What can cause this error from the following code?
An unhandled exception of type 'System.Net.WebException' occurred in
system.dll
Additional information: The underlying connection was closed: Unable to
connect to the remote server.
CODE:
'Create a new WebRequest object, which can only be done through
'the static Create method of the WebRequest class
Dim wrGETURL As WebRequest
wrGETURL = WebRequest.Create("http://127.0.0.1/")
'use whatever settings have been configured in Internet Explorer
wrGETURL.Proxy = WebProxy.GetDefaultProxy
'use it to obtain a Stream object corresponding to the
'response to your request.
Dim objStream As Stream
objStream = wrGETURL.GetResponse.GetResponseStream
This works on one machine and not the other. I've uninstalled VS2003 and
re-installed and no luck. It has to be a configuration on the machine
itself right?
An unhandled exception of type 'System.Net.WebException' occurred in
system.dll
Additional information: The underlying connection was closed: Unable to
connect to the remote server.
CODE:
'Create a new WebRequest object, which can only be done through
'the static Create method of the WebRequest class
Dim wrGETURL As WebRequest
wrGETURL = WebRequest.Create("http://127.0.0.1/")
'use whatever settings have been configured in Internet Explorer
wrGETURL.Proxy = WebProxy.GetDefaultProxy
'use it to obtain a Stream object corresponding to the
'response to your request.
Dim objStream As Stream
objStream = wrGETURL.GetResponse.GetResponseStream
This works on one machine and not the other. I've uninstalled VS2003 and
re-installed and no luck. It has to be a configuration on the machine
itself right?