G
Guest
Receiving error "The underlying connection was closed: An unexpected error
occurred on a receive." when requesting a webpage from VB.NET. Here is the
simple code:
Dim strStartPage As String 'URL of the requested page
Dim reqMain As HttpWebRequest
Dim resMain As HttpWebResponse
strStartPage = "http://www.smartpages.com"
reqMain = System.Net.HttpWebRequest.Create(strStartPage)
resMain = reqMain.GetResponse()
This code works if I request "http://www.google.com" or "http://www.msn.com"
so why does it not work for "http://www.smartpages.com"? Error is received
on the GetResponse call.
I have SP1 installed for .NET Framework 1.1.
occurred on a receive." when requesting a webpage from VB.NET. Here is the
simple code:
Dim strStartPage As String 'URL of the requested page
Dim reqMain As HttpWebRequest
Dim resMain As HttpWebResponse
strStartPage = "http://www.smartpages.com"
reqMain = System.Net.HttpWebRequest.Create(strStartPage)
resMain = reqMain.GetResponse()
This code works if I request "http://www.google.com" or "http://www.msn.com"
so why does it not work for "http://www.smartpages.com"? Error is received
on the GetResponse call.
I have SP1 installed for .NET Framework 1.1.