473,657 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebRequest - internal server error

I am using System.Net.WebR equest 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
Nov 18 '05 #1
0 1117

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1750
by: Marcus | last post by:
Hi all, I have some code that downloads an XML tree from a web server. If there is a problem returning the requested XML tree from the server, it returns an XML tree with the error message in a 500 internal server error response. I want to get this error message, but WebRequest.GetResponse() throws an error because of the server error, so I can't get a reference to the response. Is there a way around this? Code follows below.
1
3219
by: William F. Robertson, Jr. | last post by:
I am having problems with using the WebRequest object (or HttpWebRequest ). I have created the WebRequest and set the credentials, but when I call GetResponse() it is throwing an internal server error 500 on me. I am running a console app on my sql server that is trying to create a WebRequest to my Webserver to notify the cache on the webserver to refresh itself. The website is using NT authentication. The user I am using is in the...
2
342
by: Jeff | last post by:
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...
4
7223
by: Terry | last post by:
Hello, I am trying to get a response for an .aspx page in my current project (same virtual directory) by using WebRequest.GetResponse but I keep getting a exception with "500 Internal server error" in the exception message. I am able to do this fine with another .aspx page that has no code-behind. The page that has code-behind throws the exception. What I am doing is getting the .aspx response, reading the stream, replacing
1
2360
by: John | last post by:
I am in need to find a way to get the HTML from an internal URL. For example: I have page : default.aspx?page=Test, I need to get HTML of that page after rendering. At first thought, I would use WebRequest to make a requestion, then use WebResponse to get the HTML. However, it won't work in my situation. The resaon for that is: WebRequestion needs a URI, which is in the format of http://<MyDomainName>/deafult.aspx?page=Test ... In my...
0
3872
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use tools like ieHTTPHeaders v1.6, and I perform a normal login (using the normal website), I see that the viewstate is __VIEWSTATE=dDwxMzU4OTE3NTA2Ozs%2BTK88jS63JXN181X3N8zKivua8co%3D&txt_username=xxx&txt_password=xxxxxx&btn_login=Login. When I...
5
10840
by: archana | last post by:
Hi all, I am having application which is validating URL's and checking whether that URL is redirecting to some other URL at a time of opening or not. My code looks like:- WebRequest myWebRequest = WebRequest.Create(textBox1.Text); response. myWebResponse = myWebRequest.GetResponse(); MssageBox.Show(myWebResponse.ResponseUri.ToString());
1
4701
by: mfreeman | last post by:
I have a VB.NET 2005 Windows application that worked fine when I ran it a month ago, and now it is throwing an exception ("The remote server returned an error: (500) Internal Server Error.") and I don't know why. The application screen scrapes a web page. If I paste the URL in my browser's address bar and the expected page comes up just fine. When I went through the hassle of getting the real response from within the exception object,...
1
1253
by: BaKo | last post by:
Hey. In my c# app i have a webrequest that goes to a URL that contains an error. However instead of displaying the contents of the page it only returns the 500 Internal Server Error exception. Is there a way to ignore the exception and get the data on the page anyway? Thanks alot!
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.