G
Guest
I am using httpwebrequest to do a screen scrape.
This works great on my development box, but does not on the production box.
Here is the code.
Dim webRequest As HttpWebRequest = CType(webRequest.Create(LOGIN_URL),
HttpWebRequest)
webRequest.Proxy = System.Net.GlobalProxySelection.GetEmptyWebProxy
webRequest.KeepAlive = False
Dim responseReader As StreamReader = New
StreamReader(webRequest.GetResponse.GetResponseStream)
Dim responseData As String = responseReader.ReadToEnd
responseReader.Close()
On my production box, I get this error:
The underlying connection was closed. Unable to connect to the remote server.
I have made sure I have .NET framework 1.1 SP 1 installed
I have added the following code to my web.config file
<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxy:port"
bypassonlocal="false"
/>
</defaultProxy>
</system.net>
And now I am at a loss?
Any thoughts?
Thanks
This works great on my development box, but does not on the production box.
Here is the code.
Dim webRequest As HttpWebRequest = CType(webRequest.Create(LOGIN_URL),
HttpWebRequest)
webRequest.Proxy = System.Net.GlobalProxySelection.GetEmptyWebProxy
webRequest.KeepAlive = False
Dim responseReader As StreamReader = New
StreamReader(webRequest.GetResponse.GetResponseStream)
Dim responseData As String = responseReader.ReadToEnd
responseReader.Close()
On my production box, I get this error:
The underlying connection was closed. Unable to connect to the remote server.
I have made sure I have .NET framework 1.1 SP 1 installed
I have added the following code to my web.config file
<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxy:port"
bypassonlocal="false"
/>
</defaultProxy>
</system.net>
And now I am at a loss?
Any thoughts?
Thanks