.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

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

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :.NET Framework
 

i am getting "The server committed a protocol violation. Section=ResponseStatusLine"

error whan calling webservice form my windows application

 

thanks




View Complete Post


More Related Resource Links

The server committed a protocol violation. Section=ResponseStatusLine

  

Hello, 

I have a function that send the request by the HttpWebRequest and get the HttpWebResponse from that request but I have the server committed a protocal violation. Section=ResponseStatusLine failed at the HttpWebResponse response = (HttpWebResponse)request.GetResponse();  Can someone shows me the right direction of what I did wrong? thanks.

Here is an error:

The server committed a protocol violation. Section=ResponseStatusLine

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine

Source Error:

Line 276:                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
Line 277: // execute the request
Line 278: HttpWebResponse response = (HttpWebResponse)request.GetResponse();

The server committed a protocol violation. Section=ResponseStatusLine

  

Hello all,

I wonder if anybody came across the follwing issue (exactly the same issue was reported under http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=704745&SiteID=1 and under http://groups.google.com/group/microsoft.public.windowsce.embedded/browse_thread/thread/1270892027ee6c21):
We (our customer, to be precise) are making a simple web request call to our server which goes through the web proxy that requires authentication. Most of the time the request fails with "The server committed a protocol violation. Section=ResponseStatusLine" although sometimes it succeeds - there is no pattern with regards to that behavior. After enabling System.Net

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend