Home All Groups Group Topic Archive Search About

HTTPWebRequest timeout

Author
10 Oct 2005 5:30 PM
miki
Our application is written in C# and uses http remoting technology.
Server and client utilizes http channel for communications.

On some win2k sp4 machines with .Net 1.1 sp1 the client is unable to access
the server even when the server is located on the same machine.

The error does not occur when using tcp channel instead of the http channel.

We traced the problem to HTTPWebRequest using a small test application (see
attachment) that uses the HTTPWebRequest class to get the html content of a
web site page.

When running the project following lines threw an exception (see below)
HttpWebResponse loWebResponse = (HttpWebResponse) loHttp.GetResponse();


The stacked trace for JIT debugger:
************** Exception Text **************
System.Net.WebException: The operation has timed-out.
   at System.Net.HttpWebRequest.GetResponse()
   at wwHTTP.SimpleHttpWebRequest.cmdGo_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)



Extra details:

No proxy is defined.

All updates from the Microsoft Windows Update website are installed.

We installed Visual studio.Net on the machine and ran the sample project,
the following error was recived:
An unhandled exception of type 'System.ArgumentException' occurred in
mscorlib.dll.
Additional information: Invalid or unsupported code page type.


Any help resolving this issue will be appreciated.

Author
12 Oct 2005 8:49 PM
Joerg Jooss
miki wrote:

Show quote
> Our application is written in C# and uses http remoting technology.
> Server and client utilizes http channel for communications.
>
> On some win2k sp4 machines with .Net 1.1 sp1 the client is unable to
> access the server even when the server is located on the same machine.
>
> The error does not occur when using tcp channel instead of the http
> channel.
>
> We traced the problem to HTTPWebRequest using a small test
> application (see attachment) that uses the HTTPWebRequest class to
> get the html content of a web site page.
>
> When running the project following lines threw an exception (see
> below) HttpWebResponse loWebResponse = (HttpWebResponse)
> loHttp.GetResponse();
>
>
> The stacked trace for JIT debugger:
> ************** Exception Text **************
> System.Net.WebException: The operation has timed-out.
>    at System.Net.HttpWebRequest.GetResponse()
>    at wwHTTP.SimpleHttpWebRequest.cmdGo_Click(Object sender,
> EventArgs e)    at System.Windows.Forms.Control.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
>    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
> button, Int32 clicks)
>    at System.Windows.Forms.Control.WndProc(Message& m)
>    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
>    at System.Windows.Forms.Button.WndProc(Message& m)
>    at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
>    at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
>    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
> msg, IntPtr wparam, IntPtr lparam)
>
>
>
> Extra details:
>
> No proxy is defined.
>
> All updates from the Microsoft Windows Update website are installed.
>
> We installed Visual studio.Net on the machine and ran the sample
> project, the following error was recived:
> An unhandled exception of type 'System.ArgumentException' occurred in
> mscorlib.dll.
> Additional information: Invalid or unsupported code page type.
>
>
> Any help resolving this issue will be appreciated.

Can you post your code?    

Cheers,
--
http://www.joergjooss.de
mailto:news-re***@joergjooss.de

AddThis Social Bookmark Button