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

This exception is a problem

Kevinyy
77
When i pass certain request through:
Expand|Select|Wrap|Line Numbers
  1. WebResponse response = (WebResponse)WebRequest.Create(url).GetResponse();
  2. Stream responsestream = response.GetResponseStream();
I sometimes get this problem: "The server committed a protocol violation. Section=ResponseStatusLine"
=(
i currently have this executing a line before the webresponse line(above):
Expand|Select|Wrap|Line Numbers
  1. System.Net.Configuration.HttpWebRequestElement wr = new System.Net.Configuration.HttpWebRequestElement();
  2.             wr.UseUnsafeHeaderParsing = true;
(im not sure it that actually works/affects my webrequest/response)

but i am completely stumped on how to fix this problem...please guide me
Sep 23 '08 #1
1 1076
Kevinyy
77
Ive ask a few other people and they dont know either, please if anyone has delt with this and knows how to resolve it, that would be great!
Sep 23 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: gh | last post by:
Hi, Is it true that the CLR sometimes can't throw the run time exception? Cause I have just encountered a problem that my program has some unexpected behaviours. After adding try-catch block to...
8
by: Daniel Billingsley | last post by:
I've got to believe this is a fairly common / classic problem, and I think I've even read an example somewhere in my education thus far, but I sure can't remember it. Suppose I want to store a...
6
by: Vadivel Kumar | last post by:
I've a problem in handling a custom exception The following is my custom exception class: public class AppException : public Exception { public AppException (string message, Exception...
1
by: Shapper | last post by:
Hello, I am accessing a value in a XML value: news.Load(Server.MapPath("xml/ news.rss")) newslabel.Text = CType(news.SelectSingleNode("rss version="2.0 "/channel/title").InnerText, String) ...
2
by: NITIN MUNJAL | last post by:
hello, i am facing a problem in the runtime. this code is throwing exception details of which are writtten below that CODE string strConn=@"Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=" +...
4
by: utab | last post by:
Dear all, I am using boost::lexical_cast to convert string values to real values. (Please read the rest). My question is not related to boost usage or asking a question related to that. When...
2
by: Adam Hartshorne | last post by:
Hi All, I have the following problem. I have just installed visual studio 2003 (v7.1) on a new laptop. I also have the same version installed in a desktop pc. As a test, i tried compiling some...
0
by: Bob Winters | last post by:
Hi there, I'm getting a "ThreadStateException" error whenever I place a particular DLL into my app's folder. The message is: "Current thread must be set to single thread apartment (STA) mode...
3
by: sukatoa | last post by:
Exception in thread "Basic L&F File Loading Thread" java.util.concurrent.RejectedExecutionException at...
6
by: selvakumari | last post by:
i am getting an exception while end editing the 1st column 1st row of the cell(1,1) it is a combobox cell of datagridview everytime it showing following exception only on endedit dont know why...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.