The remote server returned an error: (500) Internal Server Error.

Joined
Jan 23, 2009
Messages
3
Reaction score
0
Hi,

I've got a simple application, which I'm trying to open a specific web page, but get an exception. I've had to amend the way the address is constructed to allow posting it on this forum. :-(

Dim strStart As String = "ht"
Dim strMiddle As String = "tp://w"
Dim strend As String = "ww.lda.gov.uk"
Dim hrwHttpWebRequest As HttpWebRequest = WebRequest.Create(strStart & strmiddle & strend)
hrwHttpWebRequest.GetResponse()
the exception is "The remote server returned an error: (500) Internal Server Error."

Does anyone have any ideas as to why this could be happening? If I open the page in IE, it opens fine. I've also tried a utility called GetHTTP and that works also

Regards

Bobby
 

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
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top