2016-10-17 3 views
0

VS에서 내 Kentico 웹 응용 프로그램에 대한 wcf 서비스 (SifService) 참조를 추가했습니다. 고급 옵션을 선택하지 않았습니다. 방금 wsdl 주소를 제공하고 네임 스페이스 (SifService)를 입력 한 다음 확인을 클릭합니다. 서비스 참조가 성공적으로 추가 된 것 같습니다. 그러나 아래 코드에서와 같이 클라이언트의 인스턴스를 만들려고 할 때 VS는 형식 또는 네임 스페이스 "SifService"를 찾을 수 없다고 말합니다. 최근에 Kentico 8에서 Kentico 9로 업그레이드했습니다. 동일한 정확한 코드가 Kentico 8 코드 분기에서 잘 작동합니다. 이 문제는 Kentico 9 지점에만 나타납니다. 내가 VS에서 사이트를 실행하려고하면서비스 참조가 정의되지 않았습니다.

var sifClient = new SifService.SifClient(); 

, 나는 브라우저에서이 오류를 얻을 :

Parser Error 

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Reference.svcmap: Could not load file or assembly 'System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 


Source Error: 


[No relevant source lines] 

Source File: /App_WebReferences/SifService/ Line: 1 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded. 

참고 : 나는 SifService에 서비스 참조를 추가 할 때까지 모든 것이 잘 실행됩니다.

답변

0

때로는 Visual Studio의 오류이며, 솔루션을 정리하고, 빌드하고, Visual Studio를 닫고 다시 빌드합니다. 나에게 몇 번 일했습니다!

+0

이미 시도했습니다. 감사 – ihatemash

관련 문제