PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework webresponse

Reply

webresponse

 
Thread Tools Rate Thread
Old 26-04-2005, 08:43 PM   #1
catchanu@yahoo.com
Guest
 
Posts: n/a
Default webresponse


Hi friends,
I have a question on why webresponse() is taking 5 seconds to fetch the
data.

This is my code.

Dim req As WebRequest = WebRequest.Create(reportCall)
Dim resp As WebResponse = req.GetResponse()

my report call is "http:\\localhost\\.asp?xsl"

everything is okay but when it comes to "req.GetResponse()" it takes 5
seconds to read the URL?

Could somebody tell me how do i make it fast. thanks

  Reply With Quote
Old 26-04-2005, 09:31 PM   #2
catchanu@yahoo.com
Guest
 
Posts: n/a
Default Re: webresponse

Sorry this is the repeat of the same,
I have a question on why webresponse() is taking 5 seconds to fetch the

data.


This is my code.


Dim req As WebRequest = WebRequest.Create(reportCall)
Dim resp As WebResponse = req.GetResponse() ------------1
streamData = New StreamReader(resp.GetResponseStream(),
Encoding.Default)--------2

my report call is "http:\\localhost\\.asp?xsl"


everything is okay but when it comes to "req.GetResponse() or
StreamReader(resp.GetResponseStream(), Encoding.Default)" it takes 5
seconds to read the URL?

I am not sure whether 1 or 2 taking time

Could somebody tell me how do i make it fast. thanks

  Reply With Quote
Old 26-04-2005, 09:31 PM   #3
Chris Tacke, eMVP
Guest
 
Posts: n/a
Default Re: webresponse

This actually works at all? "localhost" means your actual device, so unless
your device has a web server on it, it should always fail.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate


<catchanu@yahoo.com> wrote in message
news:1114544625.543049.181370@z14g2000cwz.googlegroups.com...
> Hi friends,
> I have a question on why webresponse() is taking 5 seconds to fetch the
> data.
>
> This is my code.
>
> Dim req As WebRequest = WebRequest.Create(reportCall)
> Dim resp As WebResponse = req.GetResponse()
>
> my report call is "http:\\localhost\\.asp?xsl"
>
> everything is okay but when it comes to "req.GetResponse()" it takes 5
> seconds to read the URL?
>
> Could somebody tell me how do i make it fast. thanks
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off