2012-11-15 5 views
0

MVC 웹 사이트 및 콘솔 응용 프로그램이있는 솔루션이 있습니다. 웹 사이트는 2 개 WCF 서비스를 호스팅하는 내가 콘솔 응용 프로그램에서 둘 중 하나에 대한 참조를 추가하려고 할 때마다, 나는 다음과 같은 오류 얻을 :지원되지 않는 미디어 유형 (415) VS2010에서 WCF 서비스를 추가 할 때

The HTML document does not contain Web service discovery information. Metadata contains a reference that cannot be resolved: ' http://blah:57997/Service/DWBusinessService.svc '. Content Type application/soap+xml; charset=utf-8 was not supported by service http://blah:57997/Service/DWBusinessService.svc . The client and service bindings may be mismatched. The remote server returned an error: (415) Unsupported Media Type. If the service is defined in the current solution, try building the solution and adding the service reference again.

웹 사이트 모두와 콘솔 응용 프로그램 빌드 벌금을.

내가 여기에 잘못 가고있는 아이디어가 있습니까?

편집 :이 질문과 관련된 정보가 확실합니다. 자세한 내용을 언제든지 요청하십시오.

답변

3

죄송합니다. Google에서 본 다른 사례와 다른 문제가 발견되었습니다. 어떤 이유로 난에 그 뒤로 퍼팅 내 웹 사이트 (WCF 호스트)의 web.config

<system.serviceModel> 
<behaviors> 
    <serviceBehaviors> 
    <behavior name=""> 
     <serviceMetadata httpGetEnabled="true" /> 
     <serviceDebug includeExceptionDetailInFaults="false" /> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 

이 블록을 주석 처리했고 나는 다시 사업입니다.

관련 문제