The server committed a protocol violation. Section=ResponseStatusLine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yarbrough40
    Contributor
    • Jun 2009
    • 320

    The server committed a protocol violation. Section=ResponseStatusLine

    my .net application returns this runtime error when attempting to hit a webservice via http get. Wierd thing is that hitting the browser back button and retrying temporarily solves the issue, only to happen again the next time you run the code. I read something about a problem in the httpheaders but I can't seem to figure out the true issue here. Any help would be appreciated.

    I have attempted adding this to the web.config which does not help:

    <system.net>
    <settings>
    <httpWebReque st useUnsafeHeader Parsing="true"/>
    </settings>
    </system.net>


    I have also added this which does not help:
    <webServices>
    <protocols>
    <add name="HttpGet"/>
    <add name="HttpPost"/>
    </protocols>
    </webServices>
Working...