wcf 응용 프로그램이 있습니다. "Service1.svc"파일이 있습니다. 지정한 web.config 파일에서IIS가 호스팅하는 wcf가 빈 페이지를 반환 함
http://localhost:2005/EmployeeService.svc
을 종점으로 사용합니다. Visual Studio에서 찾아보기를 클릭해도 문제가 없습니다. 그러나 IIS 서버에서 호스팅 할 때 빈 페이지가 나타납니다. 흥미로운 점은 웹에서 주소를 삭제하면됩니다. 이번에는이 주소에서 서비스를 볼 수 있습니다.
http://localhost:2005/EmployeeService.svc
web.config 파일은 다음과 같습니다 : 나는 ADRESS를 제공 할 때 내가 IIS에 빈 페이지를 얻을 이유
<?xml version="1.0"?>
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="EmployeeServiceBehaviour">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="EmployeeServiceBehaviour" name="EmployeeConfiguration">
<endpoint address="http://localhost:2005/EmployeeService.svc" binding="basicHttpBinding"
bindingConfiguration="" contract="IEmployeeConfiguration" />
</service>
</services>
</system.serviceModel>
<system.web>
<compilation debug="true"/>
</system.web>
<system.webServer>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>
당신이 설명해 주시겠습니까.
의미있는 대답을 얻으려면 web.config serviceModel 요소 내용을 표시해야합니다. URL을 "바인딩"으로 설정하면 어떤 의미인지 알 수 없습니다. –
그가 "끝점"을 의미한다고 생각합니다 – Amy
Sory, 질문을 편집했습니다 –