The performance of this call is very slow when it is called the first time
within a program. ( 5 - 6 seconds ) However the second time I call this
method is very fast. ( 10 - 40 ms ). It does not matter how long I wait
between subsequent calls it is still fast.
Specifics:
Windows XP x64 with retail version of .net FrameWork 2.0
Web Site is remote but is very responsive. if I call the URL directly from a
Web browser.
The call returns an XML string.
Any help will be appreciated... Code fragement is below.
HttpWebRequest HttpWReq =
(HttpWebRequest)WebRequest.Create("http://somewebsite.htm");
Console.WriteLine("\r\nCall 1.");
HttpWReq.Credentials = CredentialCache.DefaultCredentials;
HttpWReq.MaximumAutomaticRedirections = 4;
HttpWReq.MaximumResponseHeadersLength = 4;
HttpWebResponse HttpWResp =
(HttpWebResponse)HttpWReq.GetResponse();
Console.WriteLine("\r\nCall 2.");
dotnetslackers@dejasurf.com - 12 Feb 2006 04:54 GMT
I have seen this too. Ever figure it out?
speed32 - 13 Feb 2006 01:04 GMT
no response frm microsoft. i did monitor the line, sme dhcp traffic
happening.
> I have seen this too. Ever figure it out?
> ---
> Posted via www.DotNetSlackers.com