0
我想創建一個WCF服務,但得到以下錯誤。 錯誤:此服務的安全服務需要匿名身份驗證。 我發現了類似的問題,但他們的解決方案並不適合我。WCF服務的安全設置需要匿名身份驗證
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="CMSUI.DataServiceAspNetAjaxBehavior">
<enableWebScript/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
<service name="CMSUI.DataService" >
<endpoint address="" behaviorConfiguration="CMSUI.DataServiceAspNetAjaxBehavior"
binding="webHttpBinding" contract="CMSUI.DataService" />
</service>
</services>
感謝您的幫助。
我使用Windows身份驗證,我不希望啓用匿名訪問。 –
你在IIS託管?網站/應用程序是否啓用了匿名身份驗證? – Crowcoder
是的我使用IIS託管,匿名身份驗證未啓用,我不想啓用它。 –