Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with System.Net.WebResponse
Message
From
05/10/2004 17:38:14
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Problem with System.Net.WebResponse
Miscellaneous
Thread ID:
00948959
Message ID:
00948959
Views:
60
On a new server installation, we have found a problem with System.Net.WebResponse. Basically, this same setup has worked ok on other servers. So, I guess one specific component is missing.

This is the code:
   ' Get the XML
   ' expC1 Url
   Public Shared Function GetXML(ByVal tcUrl As String) As String
      Dim loReq As System.Net.WebRequest
      Dim lcHtml As String
      loReq = System.Net.WebRequest.Create(tcUrl)
      Dim loResponse As System.Net.WebResponse = loReq.GetResponse()
      Dim loStream As Stream = loResponse.GetResponseStream()
      Dim loStreamReader As StreamReader = New StreamReader(loStream)
      lcHtml = loStreamReader.ReadToEnd()
      Return lcHtml
   End Function
The line:
      Dim loResponse As System.Net.WebResponse = loReq.GetResponse()
causes the problem. Basically, this is within a Web Service. So, once that line is reached, a timeout will occur on the Web Service.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform