• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes


I am getting this error . I tried few things among which i also tried following configuration but no luck:



<httpWebRequest useUnsafeHeaderParsing="true" />



Error reads as :

Error description is the following:

                --- Inner Exception ---


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

                - Source: System

                - Stack trace:

                        at System.Net.HttpWebRequest.GetResponse()

                        at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

by (330 points)  

1 Answer

0 votes

Reasons for this error:

When accessing REST / SOAP API through browser it works fine .

Accessing same via SSIS PowerPack Components ie JSON Source or XML Source may fail.

So the reason is Headers was expected with values such as Accept, User-Agent but not supplied.


Send request with your Headers to check if its working or not.

Capture request in fiddler for working and nt working call and see whats missing.

Try adding following in  header in your unsuccess calls and see:

Accept: text/html, application/xhtml+xml, */* 

Some links to read through:



by (1.4k points)