wcf访问出现的安全问题:the caller was not authenticated by the service.
来源:互联网 发布:紫鸟数据魔方 编辑:程序博客网 时间:2024/04/27 19:06
在本项目中使用的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>
注意修改红色字体就可以了。
- wcf访问出现的安全问题:the caller was not authenticated by the service.
- wcf访问出现的安全问题:the caller was not authenticated by the service.
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- The given node was not created by the current document
- 用 @ModelAttribute 出现The request sent by the client was syntactically incorrect.的解决办法
- 访问本地环境时出现The requested URL / was not found on this server.
- iOS开发出现的错误:loaded the "VCRoot" nib but the view outlet was not set.'
- MyEclipse的Service视图框报错:Could not create the view: An unexpected exception was thrown z
- 连接WCF出现错误:The server was unable to process the request due to an internal
- 安装基于python3的numpy时,出现WARNING: The following packages cannot be authenticated.
- 导入新的javaweb工程出现The superclass "javax.servlet.http.HttpServlet" was not found
- 关于解决vs215c++出现的错误 the windows sdk version for 8.1 was not found
- Myeclipse出现Could not create the view: An unexpected exception was thrown.的问题
- RA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was
- ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was
- 项目出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的解决方法
- A rowset based on the SQL command was not returned by the OLE DB provider
- the authentication endpoit username was not found on the configured secure token service
- 毕业前奏
- c++ 语法三
- JBoss启动注册为Windows系统服务
- 每日英语-08/25/2009
- Geoprocessor.Clip(裁剪)
- wcf访问出现的安全问题:the caller was not authenticated by the service.
- 黄果树之行
- 写作目的和内容决定技术文章贴代码的方式
- C# 中WebService返回类型(string,int,bool,DataSet,class实体类)示例
- ubuntu下java虚拟机(JVM)组合jamvm+classpath+ecj
- java实用正则表达式工具类
- 不能更换桌面图片
- 什么是端口?
- 博文视点新书快讯第80期