wcf访问出现的安全问题:the caller was not authenticated by the service.
2011-01-19 16:03
1141 查看
在本项目中使用的wcf技术,调用发布服务的服务时出现“the caller was not authenticated by the service.错误”,经过在网上搜索,终于找到了解决方法,现记录如下:
修改配置文件中的节点信息:
<service behaviorConfiguration="NewMedia.Portal.Service.Service1Behavior"
name="CRI.NewMedia.Portal.Service.Service1">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBindingConfiguration" contract="CRI.NewMedia.Portal.Service.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<bindings>
<wsHttpBinding>
<binding name="wsHttpBindingConfiguration">
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<behavior name="NewMedia.Portal.Service.Service1Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
注意修改红色字体就可以了。
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/yanli0823/archive/2009/08/26/4481876.aspx
修改配置文件中的节点信息:
<service behaviorConfiguration="NewMedia.Portal.Service.Service1Behavior"
name="CRI.NewMedia.Portal.Service.Service1">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBindingConfiguration" contract="CRI.NewMedia.Portal.Service.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<bindings>
<wsHttpBinding>
<binding name="wsHttpBindingConfiguration">
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<behavior name="NewMedia.Portal.Service.Service1Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
注意修改红色字体就可以了。
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/yanli0823/archive/2009/08/26/4481876.aspx
相关文章推荐
- wcf访问出现的安全问题:the caller was not authenticated by the service.
- WCF:The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.
- WCF,The caller was not authenticated by the service
- The caller was not authenticated by the service
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- 访问页面出错:The requested URL / was not found on this server. 网站打开出现404
- fiddler出现“Fiddler creation of the root certificate was not successful”问题
- 安装Python-Matplotlib时出现的问题--Python version 2.7 required, which was not found in the registry
- JSP页面顶端出现错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的问题解决
- 解决Windows用vnc连接Ubuntu时出现The connection was refused by the host computer问题
- apache url重写 出现The requested URL was not found on this server的问题index.php路径加上index.php就正常的问题
- 解决升级到最新版cocoaPods出现file was built for archive which is not the architecture being linked (x86_64)的问题
- WCF : 修复 Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service 问题
- 解决升级到最新版cocoaPods出现file was built for archive which is not the architecture being linked (x86_64)的问题
- 解决MySQL安装重装时出现could not start the service mysql error:0问题的方法
- android出现the project was not built due to "a resource exists with a different case问题
- 解决MySQL安装重装时出现could not start the service mysql error:0问题的方法
- 访问本地环境时出现The requested URL / was not found on this server.
- 解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题