IIS 7에서 두 번째 웹 사이트를 설정하려고하면 net.tcp 용으로 구성된 서비스를 제외한 대부분의/모든 미러링 된 서비스 기능이 작동합니다. SVC는 URL에 액세스하려고, 내가받을 다음과 같은 오류 :여러 사이트를 호스팅하는 IIS에서 net.tcp에 대한 WCF 서비스를 구성 할 수 없습니다.
고급 설정 :
는 답변을 따르려고
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
바인딩 구성을 IIS 스택 오버플로에서 발견, 아무도 작동하는 것. 서비스의 web.config의 내용 :
<system.serviceModel>
<services>
<service name="ServiceName">
<endpoint address="basic" binding="basicHttpBinding" bindingConfiguration=""
name="basic" contract="ServiceName.IService" />
<endpoint address="nettcp" binding="netTcpBinding" bindingConfiguration=""
name="netTCP" contract="ServiceName.IService" />
<host>
<baseAddresses>
<add baseAddress="http://staging.localhost/ServiceName" />
<add baseAddress="net.tcp://localhost:8033/ServiceName" />
</baseAddresses>
</host>
</service>
</services>
는 net.tcp 바인딩에 트릭이 있습니까? web.config에 필요한 올바른 구성은 무엇입니까?
감사합니다.
당신이 고급 설정으로 이동하여 볼 (응용 프로그램에'net.tcp'을 추가하는 시도 유무 : 고급 설정 대화 상자에서 사용할 수있는 프로토콜에 net.tcp 추가 한 경우 확인 Behaviors 섹션 아래에 Enabled Protocols라는 이름이 있습니다). – Tim
@Tim 고마워요. 네, 그 행동을 추가했습니다. 나는 스크린 샷을 포함해야했다. – KevinRF
Net.TcpListener 서비스가 실행 중입니까? IIS를 다시 시작해 보셨습니까? – PatFromCanada