WebRequest - internal server error

J

Jeff

I am using System.Net.WebRequest to request an aspx from another aspx.
If the remote requested page is accessed using a url in the form
http://localhost everything works fine. However if the request is
made using http://<machinename> I get an internal server error. The
requests are made to the same machine and same page. Ultimately the
second page will be on a remote server, but for development/debug
purposes it's currently on the same machine to enable to debug.

If I put a break point on the requested page during Page_Load and step
through, everything appears to work ok. No exceptions are thrown. but
as soon as the flow returns to the requesting page and I attempt to
get the responseStream a WebException occurrs.

Any suggestions would be greatly appreciated.

cheers
 
J

Joerg Jooss

Jeff said:
I am using System.Net.WebRequest to request an aspx from another aspx.
If the remote requested page is accessed using a url in the form
http://localhost everything works fine. However if the request is
made using http://<machinename> I get an internal server error. The
requests are made to the same machine and same page. Ultimately the
second page will be on a remote server, but for development/debug
purposes it's currently on the same machine to enable to debug.

If I put a break point on the requested page during Page_Load and step
through, everything appears to work ok. No exceptions are thrown. but
as soon as the flow returns to the requesting page and I attempt to
get the responseStream a WebException occurrs.

Any suggestions would be greatly appreciated.

That sounds very weird. Can you provide some sample code?

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top