By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,225 Members | 2,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,225 IT Pros & Developers. It's quick & easy.

'(500) internal server error' as webexception

P: n/a
I get "(500) Internal server error" on line 1 only with
http://www.futuresource.com as URL (below).
What could ne the reason and how to overcome it?
TIA

Dim returnValue As Stream
Dim HttpWRqst As HttpWebRequest
Dim HttpWResp As HttpWebResponse
HttpWRqst = CType(WebRequest.Create("http://www.futuresource.com"),
HttpWebRequest)
HttpWRqst.MaximumAutomaticRedirections = 24
HttpWRqst.MaximumResponseHeadersLength = 24
Try
HttpWResp = CType(HttpWRqst.GetResponse(), HttpWebResponse)
'line 1
returnValue = HttpWResp.GetResponseStream()
Catch webex As WebException
MsgBox(webex.Message, MsgBoxStyle.Critical, "WebRequest: " &
urlMarket)
End Try
Nov 26 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.