在IIS7上擁有託管的WCF服務,.net 3.5sp1以及運行應用程序池的域帳戶。我想要Windows身份驗證,wsHttpBinding和匿名關閉。刪除MEX終結點,設置郵件的安全性,但仍然得到:wsHttp綁定IIS7上的WCF服務(僅限Windows驗證)
此服務的安全設置需要「匿名」身份驗證,但它沒有爲承載此服務的IIS應用程序啓用。
我嘗試了大約50個不同的web.config配置,但沒有喜悅。
當前的web.config:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="PressReleaseService.PRBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="PressReleaseService.PRBehavior" name="PressReleaseService.PR">
<endpoint address="" binding="wsHttpBinding" contract="PressReleaseService.IPR">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IPR" 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="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="false"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
此外,還有相同的應用程序池下運行的其他服務,它已經墨西哥,有WsHttpBinding的主要終點,而它只有在啓用Windows身份驗證IIS。
任何線索?