473,407 Members | 2,629 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,407 software developers and data experts.

ERR - WebClient.DownloadData returns "protocol violation"

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
1 2771
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: jblazi | last post by:
Let us assume I have a list like and would like to transoform it into the string '{1,2},{7,8},{12,13}' Which is the simplest way of achiebing this? (The list is in fact much longer and...
0
by: Kunle Odutola | last post by:
I'd like to access a few docs in the VS.NET help collection from a .NET app. The obvious WebClient/WebRequest/WebResponse solution isn't working because their is no pluggable protocol...
4
by: Toufik | last post by:
Hi, I've the folowing error "Concurency violation, The update command affected 0 records", when I execute the save command "DA.Update(DS, "tblName")" DA is a dataadapter linked to a...
3
by: Scott McDermott | last post by:
I have an application that is making an HTTP request with HttpWebRequest.GetRequest. Unless I set 'httpWebRequest useUnsafeHeaderParsing="true"' in the web.config, I get a 'The server committed a...
2
by: Curten | last post by:
Hi, I want to read data from a txt-file that looks like this: aaa 4 12.45 bbb 3 7.34 ccc 12 3.45 and store the data in an array of structures. The struct and array are defined...
2
by: Morgan Cheng | last post by:
I have a crawler in C#. The main functionality relies on HttpWebRequest and HttpWebResponse. It shows that some webpages are not downloaded successfully. A WebException is thrown with info...
23
by: pbaldridge | last post by:
I'm just starting my first C++ class and have a very basic question. We are to write a program that is going to be using the pow10(int m) function and we are not to use the pow10 function from the...
0
by: oriol.ardevol | last post by:
Hi, I have an asp.net application that connects through an HttpWebRequest object to a ISAPI dll in a server. This isapi dll has some different method calls. What I do is calling the different...
6
by: hadad.yaniv | last post by:
Hello, i am new to c++, i hav a vector of typed object: vector<Man*People; When i do a second pushback, even for the same object the program crash say: "An Access Violation (Segmentation...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.