473,473 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error: "The server committed a protocol violation. Section=ResponseStatusLine"

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 methods of the isapi with
HttpWebRequest with GET protocol like:

http://<server>/APIWeb/<isapi>.dll?<method>?<parameter1>=<parameter1_valu e>&<parameter2>=<parameter2_value>&...

The problem we have is that just for one of the methods of the isapi,
we get the "The server committed a protocol violation.
Section=ResponseStatusLine" exception. The rest of the method calls
work properly and don't fail.

I've tried to set the "AllowUnsafeHeaders" attribute in web.config
without any success.

Also, I've enabled logging for System.Net namespace and this are the
results for a successfull call:

System.Net Information: 0 : [5692] Associating HttpWebRequest#58011989
with ServicePoint#9886408
System.Net Information: 0 : [5692] Associating Connection#41013592
with HttpWebRequest#58011989
System.Net Information: 0 : [5692] Associating HttpWebRequest#58011989
with ConnectStream#18706858
System.Net Information: 0 : [5692] HttpWebRequest#58011989 - Request:
GET /APIWeb/apiweb.dll?API_GetInfoRegistros?PWIndice=1&PWNumer o=1 HTTP/
1.1

System.Net Information: 0 : [5692] ConnectStream#18706858 - Sending
headers
{
User-Agent: Pixelware HTTP Sample
Pragma: no-cache
Host: <server_ip>
Connection: Close
}.
System.Net Information: 0 : [5692] Connection#41013592 - Received
status line: Version=1.0, StatusCode=200, StatusDescription=OK.
System.Net Information: 0 : [5692] Connection#41013592 - Received
headers
{
Server: Microsoft-IIS/6.0

And the log for the method that fails:

System.Net Information: 0 : [3704] Associating HttpWebRequest#3865173
with ServicePoint#9886408
System.Net Information: 0 : [3704] Associating Connection#34786562
with HttpWebRequest#3865173
System.Net Information: 0 : [3704] Associating HttpWebRequest#3865173
with ConnectStream#44643603
System.Net Information: 0 : [3704] HttpWebRequest#3865173 - Request:
GET /apiweb/apiweb.dll?API_GetInfoTareas?PWIdWF=000000000013 HTTP/1.1

System.Net Information: 0 : [3704] ConnectStream#44643603 - Sending
headers
{
User-Agent: Pixelware HTTP Sample
Pragma: no-cache
Host: <server_ip>
Connection: Close
}.
System.Net Error: 0 : [3704] Exception in the HttpWebRequest#3865173::
- The server committed a protocol violation.
Section=ResponseStatusLine
System.Net Error: 0 : [3704] Exception in the
HttpWebRequest#3865173::EndGetResponse - The server committed a
protocol violation. Section=ResponseStatusLine
Any help will be appreciated, thanks in advance,
ori

May 25 '07 #1
0 3530

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
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...
1
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.