이 오류로 인해 다음 번에 아무 것도없는 WCF 서비스가 있습니다. 그것은 벽 위로 나를 몰고있다. 여기에 내가 가진 것이있다."원격 서버에서 오류를 반환했습니다 : (403) HTTPS에서 WCF 서비스와 함께 금지 됨"
값이 "test"인 문자열을 반환하는 매우 간단한 WCF 서비스입니다.
서비스를 사용하고 문자열의 값을 레이블에 넣는 매우 간단한 웹 앱입니다.
SSL 인증서를 사용하여 Windows 2003에서 IIS 6을 실행하는 웹 서버.
동일한 서버에서 작동하는 다른 WCF 서비스. 이 HTTPS 내가 VS에서 디버그 모드에서 웹 응용 프로그램을 실행 위치
의에
나는 WCF 서비스를 게시하고 완벽하게 작동합니다.
:
나는 그것에 웹 응용 프로그램은 WCF 서비스가
내가 얻을 같은 SSL 인증서 아래에있는 동일한 서버에 위치, "(403) 금지 원격 서버에서 오류를 반환"HTTPS의 게시 IIS의 모든 설정과 WCF 및 웹 응용 프로그램을 거의 변경하지 않았습니다. 나는 작동하는 WCF 서비스의 설정을 비교했으며 모든 것이 동일합니다.
아래는 WCF 서비스 및 웹 응용 프로그램의 Web.config의 설정은 다음과 같습니다
그것은 문제가 웹 애플리케이션과 관련이 나타납니다 그러나 나는 밖으로 아이디어입니다. 어떤 아이디어 :
WCF 서비스 :
<system.serviceModel>
<bindings>
<client />
<services>
<service behaviorConfiguration="Ucf.Smtp.Wcf.SmtpServiceBehavior" name="Ucf.Smtp.Wcf.SmtpService">
<host>
<baseAddresses>
<add baseAddress="https://test.net.ucf.edu/webservices/Smtp/" />
</baseAddresses>
</host>
<endpoint address="" binding="wsHttpBinding" contract="Ucf.Smtp.Wcf.ISmtpService" bindingConfiguration="SSLBinding">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Ucf.Smtp.Wcf.SmtpServiceBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" httpsHelpPageEnabled="True"/>
</behavior>
</serviceBehaviors>
</behaviors>
웹 응용 프로그램 :
사용자 계정이있는 경우<system.serviceModel>
<bindings><wsHttpBinding>
<binding name="WSHttpBinding_ISmtpService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
establishSecurityContext="true" />
</security>
</binding>
<client>
<endpoint address="https://net228.net.ucf.edu/webservices/smtp/SmtpService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISmtpService"
contract="SmtpService.ISmtpService" name="WSHttpBinding_ISmtpService">
<identity>
<dns value="localhost" />
</identity>
</client>
</system.serviceModel>