0
IIS 7.0에서 새 디렉터리 XYZ를 만들었습니다. web.config, Service.cs 및 Service.svc를 디렉토리에 복사했습니다. 이제 http://www.mydomain.com/XYZ/Service.svc을 탐색 할 때 '500 내부 서버 오류'가 발생합니다.웹 서버에 간단한 WCF 서비스 배포
다음은 web.cofig 파일입니다.
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 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="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
구성 파일에 문제가있을 수 있지만 로컬 컴퓨터에서 서비스가 정상적으로 실행되고 있다고 생각합니다.