0

내 호스팅 서버에 저장된 파일에서 Silverlight 프로젝트에 대한 서비스 참조를 추가하려고합니다. 링크를 삽입하면 다음 오류가 발생합니다.서비스 참조를 추가하려고 할 때의 오류 메시지

The document at the url http://www.lloydp.co.uk/Test/WcfRectangleService.dll was not recognized as a known document type. 
The error message from each known type may help you fix the problem: 
- Report from 'DISCO Document' is 'Data at the root level is invalid. Line 1, position 1.'. 
- Report from 'WSDL Document' is 'There is an error in XML document (1, 1).'. 
    - Data at the root level is invalid. Line 1, position 1. 
- Report from 'XML Schema' is 'Data at the root level is invalid. Line 1, position 1.'. 
Metadata contains a reference that cannot be resolved: 'http://www.lloydp.co.uk/Test/WcfRectangleService.dll'. 
The content type application/octet-stream of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: 'MZ� 

누구에게 문제가 무엇인지 말해 줄 수 있습니까? XML 파일은 어쨌든 변경되지 않았으므로이 모든 것을 처음 접했기 때문에 조금 분실되었습니다. 당신은 URL http://www.lloydp.co.uk/Test/WcfRectangleService.dll에서 가리키는 사전에

감사합니다,

로이드

답변

1

는 - 확장명은 .dll을 확인합니다. 이것은 서비스의 내부 코드입니다. 따라서 웹 서버는 XML 문서가 아닌 이진 코드를 반환합니다.

대신 .svc 파일을 가리 킵니다. 서비스 끝점입니다.

+0

감사합니다. 나는 .svc 파일로 변경했고, 두 번째 문자가 % – ThePower

+0

인 경우 오류가 발생합니다. 그 다음에 SVC의 첫 번째 부분을 게시하십시오. –

+0

웹 서버와 같은 소리가 웹 서비스 요청으로 해석하지 않고 .svc 파일 내용을 직접 반환합니다. 이것은 아마도 웹 서버 구성 문제 일 것입니다. .svc 파일 확장명은 .NET 런타임과 관련이 없습니다. .NET 프레임 워크가 웹 서버에 설치되어 있습니까? – itowlson