473,395 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Internal Server Error with HTTPRequest

Bp
I'm writing a simple HTTPRequest that retrieves the content of a web page.

Dim httpReq As System.Net.HttpWebRequest
Dim httpResp As System.Net.HttpWebResponse

httpReq = CType(System.Net.WebRequest.Create(URLString),
System.Net.HttpWebRequest)
httpResp = CType(httpReq.GetResponse(), System.Net.HttpWebResponse)

The problem is that on certain pages, I get a WebException of "The remote
server returned an error: (500) Internal Server Error." on the
HTTPRequest.GetResponse function call. The WebException.Status is set to
ProtocolError. When I use IE 6.0 to retrieve these pages, it works fine. Are
there some additional settings that I need to make to retrieve certain web
pages? One sample URL that fails on the call to HTTPRequest.GetResponse is
the ASP.NET Users Group page on MSDN:

http://msdn.microsoft.com/usergroups...6CurrentPage=2

Thanks for any help in advance,

Bp
Nov 18 '05 #1
0 1013

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

Similar topics

0
by: Bp | last post by:
I'm writing a simple HTTPRequest that retrieves the content of a web page. Dim httpReq As System.Net.HttpWebRequest Dim httpResp As System.Net.HttpWebResponse httpReq =...
9
by: Don | last post by:
I'm trying to run the following page on my desktop from my host server. It works just fine if I run it from my desktop, but not if I run it from the server. I get "Error: Permission denied" on...
4
by: Serban | last post by:
Hi I have two applications(client and server) that pass an XML document but I have a hard time reading the XML document on the server side. So the client application creates the XML document...
5
by: Rich Williams | last post by:
Hi All, I am trying to build an class that will POST XML to a merchant Gateway. The XML represents a customer transaction. I have no idea how to go about posting anything other then a collection...
2
by: Natalie | last post by:
Hy I have a problem with sending a request to an ArcIMS server. The data never reaches the server and I get the following error message: ... AXLParser: Document cannot be parsed correctly....
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
4
by: mct | last post by:
Environment --------------- Visual Studio 2005 ..NET 2.0 Windows XP SP2 Scenario ---------- TCLibrary (Class Library) • Contains MyIdentity and MyPrincipal classes that implement the...
0
by: kuladeep.mohan | last post by:
Hi I am trying to consume a web service from asp.net web page through HTTP POST method and I am getting the following error message "System.Net.WebException: The remote server returned an error:...
1
by: ibaldwinjr | last post by:
Hi, I am trying to get a response from a URL using the HttpWebRequest object. this is my code below. httpRequest = (HttpWebRequest) WebRequest.Create(myurl); httpRequest.Method = "GET";...
8
Mayur2007
by: Mayur2007 | last post by:
Hello all, I am using javascript and ajax. i had writen the following javascript code. which runs fine with firefox but it is not work in Internet Explorer 6.0 tell me whats the problem. the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...

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.