Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with System.Net.WebResponse
Message
De
05/10/2004 17:38:14
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Problem with System.Net.WebResponse
Divers
Thread ID:
00948959
Message ID:
00948959
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform