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

ERR - WebClient.DownloadData returns "protocol violation"

P: n/a
ATS
ERR - WebClient.DownloadData returns "protocol violation"

Please help,

I'm getting a "protocol violation" from a site that is working perfectly
fine when I issue WebClient.DownloadData as such:

WebClient WebClient_Temp = new WebClient();
byte[] zbyteTemp = WebClient_Temp.DownloadData
(
"http://MySite/MyWebPage.htm"
);

I have heard of the app.config file fix, but my app is a UserControl, and as
such, I can not keep the "MyApp.dll.config" in the smae directory. What can I
do? Is there not any hard code way to FORCE this error to be ignored. And for
that matter, I really do not want the WebClient to parse the output. I want
to get it RAW. now parsing. What can one do?
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ATS wrote:
ERR - WebClient.DownloadData returns "protocol violation"

Please help,

I'm getting a "protocol violation" from a site that is working
perfectly fine when I issue WebClient.DownloadData as such:

WebClient WebClient_Temp = new WebClient();
byte[] zbyteTemp = WebClient_Temp.DownloadData
(
"http://MySite/MyWebPage.htm"
);

I have heard of the app.config file fix, but my app is a UserControl,
and as such, I can not keep the "MyApp.dll.config" in the smae
directory. What can I do? Is there not any hard code way to FORCE
this error to be ignored. And for that matter, I really do not want
the WebClient to parse the output. I want to get it RAW. now parsing.
What can one do?


One would have to look at the HTTP traffic between client and server.
Does the web site serve simple static content (like your sample)
suggests, or is it a web application?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.