The server committed a protocol violation.

19 views
Skip to first unread message

jmsides

unread,
Dec 27, 2009, 6:28:51 PM12/27/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I am doing a POST to a C# web site.

I have changed the web.config file as suggested.

<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>


I still get “The server committed a protocol violation.
Section=ResponseStatusLine”. I only get the error when I POST 3 times
in session. The first Post is good, the second or third will fail
with the protocol error. Only one of the two will fail, it is not
consistent. If I pause between POST (break point) all three
function.
Help?

Peter Smith

unread,
Dec 29, 2009, 10:53:28 AM12/29/09
to dotnetde...@googlegroups.com

jmsides

unread,
Feb 16, 2010, 10:17:20 AM2/16/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Thanks Peter, but none of the links help...

On Dec 29 2009, 9:53 am, Peter Smith <psmith.w...@gmail.com> wrote:
> Odd you should send the list your follow--up, but not the original, here (I
> can't find any previous posts by you on the list)
>
> Solution? Put in a pause after your POST. :)
>
> Or, Check out:
>

> http://www.velocityreviews.com/forums/t302174-why-do-i-get-the-server...
>
> http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/db05...
>
> http://www.cookcomputing.com/blog/archives/000556.html
>
> http://www.checkbox.com/kb/articles/kb-1058-protocol_violation_error_...
>
> For ideas.

jmsides

unread,
Feb 17, 2010, 6:00:40 PM2/17/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Here is my fix..

instead of dim request webrequest use dim request httpwebrequest...
add request.keepalive = false

-----------------------------------------------------------------------------------------------------

On Dec 29 2009, 9:53 am, Peter Smith <psmith.w...@gmail.com> wrote:

> Odd you should send the list your follow--up, but not the original, here (I
> can't find any previous posts by you on the list)
>
> Solution? Put in a pause after your POST. :)
>
> Or, Check out:
>

Reply all
Reply to author
Forward
0 new messages