2010-08-19 3 views
1

응용 프로그램을 공유 호스팅으로 이동 한 후 전용 서버에서 작동했던 .asmx 및 WCF 서비스에 대한 서비스 참조를 추가 할 수 없습니다.서비스 참조 추가 오류 서버가 프로토콜 위반을 완결했습니다.

WCF 서비스 참조를 추가하는 오류는 다음과 같습니다

There was an error downloading 'address ... Service.svc'. 
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF 
Metadata contains a reference that cannot be resolved: 'address ... Service.svc'. 
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF 
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF 
If the service is defined in the current solution, try building the solution and adding the service reference again. 

ASMX 웹 참조 :

There was an error downloading 'address ... .asmx'. 
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF 
There was an error downloading 'address ... .asmx/$metadata'. 
The server committed a 

어떤 아이디어?

답변

1

파일을 업로드 할 때 (아마 ftp 클라이언트) 모든 줄 끝을 유닉스 스타일로 변환 한 것처럼 보입니다. 파일을 다시 업로드하여 파일 변환이 일어나지 않도록하십시오.

+0

아니오 "웹 서비스 파일"의 내용은 파일을 검색하여 생성 된 출력과는 아무 상관이없는 것 :

당신은 여기 예제 참조 프로그래밍 방식으로이 값을 설정하는 방법을 찾고 있다면 . –

1

네트워킹 장비 나 소프트웨어가 라인 엔딩을 유닉스 스타일로 변환하는 것처럼 보입니다. hoster의 기술 지원 담당자에게 이렇게 말하면 "유닉스 모드가 켜지 길 원하지 않습니다."라고 즉시 말할 수 있습니다.

2

이 문제를 일으키는 프로토콜 위반인지 확인하는 한 가지 방법은 Fiddler (Http 웹 프록시)를 사용하여 동일한 오류가 발생하는지 확인하는 것입니다. 그렇지 않은 경우 (즉, 피들러가 문제를 처리 한 경우) UseUnsafeHeaderParsing 플래그를 사용하여 문제를 해결할 수 있습니다. http://o2platform.wordpress.com/2010/10/20/dealing-with-the-server-committed-a-protocol-violation-sectionresponsestatusline/

관련 문제