求,俩天拉.WCF wfhttpBing,[从另一方收到未进行安全处理或安全处理不正确的异常。 有关异常代码和详细信息,请参见内部 FaultException
发布时间:2011-06-26 19:40:49 文章来源:www.iduyao.cn 采编人员:星星草
求,俩天拉.WCF wfhttpBing,[从另一方收到未进行安全处理或安全处理不正确的错误。 有关错误代码和详细信息,请参见内部 FaultException。
关于WCF wsHttpBinding,
[从另一方收到未进行安全处理或安全处理不正确的错误。有关错误代码和详细信息,请参见内部 FaultException.]
报出了这个错误.
相关设置如下:
config 配置如下:(XX.XX.X.11 为IP地址.为安全保密,X代替)
XX.XX.X.11 这个证书为不可信任机关发行的. 跟机器IP同名
把 XX.XX.X.11的服务器 换成 XX.XX.X.12 的服务器 ,证书换成 XX.XX.X.12
同样是不可信任机关发行的.跟机器IP同名,却可以
求帮助,2天拉..老板发火拉.
Service config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service
name="WCF.MyService"
behaviorConfiguration="MyServicebehavior">
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration="MyServiceBinding"
contract="WCF.IMyService" />
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="MyServiceBinding">
<security mode="Message">
<message clientCredentialType="UserName"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="MyServicebehavior">
<serviceCredentials>
<clientCertificate>
<authentication certificateValidationMode="None" />
</clientCertificate>
<userNameAuthentication userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="WCF.CustomUserNameValidator,WCF" />
<serviceCertificate findValue="XX.XX.X.11" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" />
</serviceCredentials>
<serviceMetadata httpGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.web>
<trust level="Full" />
<customErrors mode="Off"/>
</system.web>
</configuration>
client config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IMyService" 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="6553600"
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">
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
wpf中类似redrawWindow函数?
自定义一个控件,此控件需要每0.01s刷新一次,
我试着用DispatcherTimer类来刷新,在刷新时调用Invalidate...
-
(急求高手解决)异常详细信息: System.ArgumentException: 已添加了具有相同键的项。
已添加了具有相同键的项。
说明: 执行当前...
-
请问有没有人知道基于ASP.NET的快速开发平台?
目前市面上基于JAVA技术的开发平台有很多如普元EOS,用友UAP,浪潮楼上,金蝶BOS等等,这些...
-
嵌套repeater,复制问题!!!!
嵌套时是先给外层赋值,在给内层赋值的,我想在内层repeater赋值之后,再根据内层的值给外层的某项赋值,该怎么做...
-
请求“System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类...
-
C:\Documents and Settings\Administrator\Local Settings拒绝访问
我装的VS2010放到D盘了,可是我在创建项目的时候会报错,所以...
-
求书!
有关C#编译原理的书,介绍几本吧!
------解决方案--------------------
自己下载吧
http://download.csdn.net/download/xinz...
-
fusioncharts lengend 图标说明
fusioncharts 的图标说明,就是那种颜色小方块,官网上点击可以隐藏对应的柱子。。
这个点击图标说明...
-
关于windowsphone和安卓
刚在百度上查了下windowsphone的开发只有20多条而安卓的有3637条记录,然后我又在腾讯新闻上查看10大热门...
-
在wpf中怎样确定窗体的标题栏的高度?
如题.
xaml里的windows标签的height是整个窗体的高度,包括标题栏.而标题栏的高度不知道,对...