다른 응용 프로그램이이 서비스 URL에 대한 http 요청을 작성하여 문자열을 검색 할 수있게 해주는 WCF 웹 서비스를 만들려고합니다. 나는 내가 URL, 을 사용하는 폴더의 경로를 확인 할 때 그것을배포 후 WCF 웹 서비스가 작동하지 않습니다.
' The resource cannot be found'
을 말한다 내가 오류를 얻을 URL을 사용하여, 그것에 검색 할 때 IIS에서 서비스를 게시하고 시도
C:\inetpub\wwwroot\WcfServices\WcfSampleLibrary\WcfSampleLibrary.Service1
C:\inetpub\wwwroot\WcfServices\WcfSampleLibrary\Web.config
C:\inetpub\wwwroot\WcfServices\WcfSampleLibrary\bin\WcfSampleLibrary.dll
웹 설정 파일 :
여기'No protocol binding matches the given address
'http://localhost:xxxx/WcfSampleLibrary/Service1/mex.'
Protocol bindings are configured at the Site level in IIS or WAS configuration'
게시 된 폴더의 디렉토리 경로입니다
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<system.serviceModel>
<services>
<service name="WcfSampleLibrary.Service1" behaviorConfiguration ="mex">
<host>
<baseAddresses>
<add baseAddress = "http://192.xxx.x.xxx/WcfSampleLibrary/Service1/" />
</baseAddresses>
</host>
<!-- Service Endpoints -->
<endpoint address =""
binding="wsHttpBinding" contract="WcfSampleLibrary.IService1">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<!-- Metadata Endpoints -->
<endpoint address="http://localhost:xxxx/WcfSampleLibrary/Service1/mex" name="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="mex">
<serviceMetadata httpGetEnabled="false"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
IIS에서 호스팅되는 WCF 서비스에서
동일한 컴퓨터에서 IIS에 게시 한 후 포트 'xxxx'에서 수신 대기합니까? – mellamokb
당신의'baseAddress'는 여러분의 서비스 엔드 포인트'address'와 다릅니다. 보통'baseAddress'를 생략 할 수 있습니다. – Filburt
포트를 설정하지 않았지만 서버 IP 주소 만 사용하려고했습니다. 그것은 포트 자체를 설정합니다 – vbNewbie