내에서 WCF TCP 서비스를 참조하는 "단계 7 : 테스트 클라이언트 응용 프로그램 만들기"및 하위 단계 5 : "5. 서비스 참조 추가 대화 상자에서 서비스 URI를 net.tcp : // localhost : 8523/WCFTestService로 설정 한 다음 이동을 클릭하십시오."내가 연습을 통과하고 동일한 솔루션
"URI 접두사가 인식되지 않습니다. 메타 데이터에 해결할 수없는 참조가 있습니다."
마치 "서비스 참조 추가"가 "net.tcp"바인딩을 인식하지 못하는 것입니다.
저는 Visual Studio 2012를 사용하는 Windows 7 x64에 있고 프로젝트는 x86 및 Framework 4.5를 대상으로합니다.
나는이 스레드를An error in the MSDN walk-through - "How to: Host WCF in a Windows Service Using TCP"
을 발견하지만 클라이언트가 동일한 솔루션에있을 때 그들은 문제가되지 않았다. 나는.서비스 구성은 :
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="Publisher.MyServiceBehavior">
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="POC_WcfTcpSubscribePublishService.Publisher">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
name="NetTcpBindingEndpoint" contract="POC_WcfTcpSubscribePublishService.IPublisher">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
name="MexTcpBindingEndpoint" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8523/WcfTcpSubscribePublish" />
</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>
모든 포인터를 환영합니다.
참조를 추가하려는 서비스가 실행 중입니까? 요구 사항입니다. 컨텍스트 메뉴와 별도로 서비스 프로젝트를 실행할 수 있습니다. –
늦게 대응하여 죄송합니다. 이것이 문제였습니다. 나는 내가 서비스를 실행하고 있다고 생각했지만 시작했을 때 다른 이유로 즉시 종료되었습니다. 이제 클라이언트 프로젝트에 서비스 참조를 추가 할 수 있습니다. 재밌지 만 발견은 여전히 효과가 없습니다. – dtaylor
이 응답을 대답으로 추가하면 응답으로 표시됩니다. – dtaylor