【发布时间】:2009-12-10 03:59:27
【问题描述】:
我最近对一个包含 wcf 服务的工作 Web 应用程序进行了更改。发布内容后,我收到错误此服务的安全设置需要“匿名”身份验证,但托管此服务的 IIS 应用程序未启用它..
在过去的五个小时里,我一直在网上搜索,试图对此有所了解
我有未经检查的匿名授权...
这是我的 web.config 中的网络服务部分,请帮忙!!!
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IService1" >
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<!--http://localhost:2083/Service1.svc-->
<endpoint address="" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IService1" contract="ServiceReference1.IService1"
name="WSHttpBinding_IService1">
<identity>
<dns value="issupport03" />
</identity>
</endpoint>
</client>
<services>
<service name="WcfService1.AjaxWcf">
<endpoint address="" behaviorConfiguration="WcfService1.AjaxWcfAspNetAjaxBehavior"
binding="webHttpBinding" contract="WcfService1.AjaxWcf" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="WcfService1.AjaxWcfAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="WcfService1.AjaxWcfAspNetAjaxBehavior">
<serviceDebug includeExceptionDetailInFaults="True"/>
</behavior>
</serviceBehaviors>
</behaviors>
【问题讨论】:
-
请编辑您的标题;你的标题非常非常烦人
-
如果您认为标题令人讨厌,我深表歉意;告诉我,你觉得应该是什么?
-
我冒昧地更改了它。您不应该在标题中添加与“紧急”或“请帮助”等问题不直接相关的任何内容。此外,感叹号会让人分心。
标签: wcf wcf-binding