Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webservice Publishing Problems

Status
Not open for further replies.

nicklieb

Programmer
Oct 17, 2002
383
GB
I have an error that is driving me nuts.

I am publishing the web service to a development server. Windows 2003 all with latest patches etc.

Publishing the service is no problem, but when i try to import it into a new project there is an eror

Code:
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

When I publish this to the live server, it works fine.. In theory there should be no difference between the the dev and live..

I had done some major trawling and not really found an solution.

One I did find and it made no difference was to add the following to the web.config file

Code:
  <system.net>
    <settings>
      <httpWebRequest useUnsafeHeaderParsing="true"/>
    </settings>
  </system.net>
I inserted this just below the configuration tag.

I have checked the server and IIS and it all seems to be normal

Has anyone else experienced this and found a solution. Is this a server issue? or an application issue?

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top