【发布时间】:2011-03-31 21:48:20
【问题描述】:
连接到我的网络服务时,我不断收到此错误
外发消息的身份检查失败。对于 'http://qbes:3790/Bullfrog/QBService/QBService' 目标端点,预期的身份是 'identity(http://schemas.xmlsoap.org/ws/2005/05/identity/right/possessproperty: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn)'。
如果我将我的身份设置为我的电子邮件地址,我唯一可以让它工作的时间。我不知道为什么这行得通,我只是在尝试一些事情并且它奏效了。但是,当我将客户端应用程序发布到我的 Web 服务器时,该电子邮件身份不再有效,并且我得到了同样的错误。 我在这里做错了什么? 这是我的配置部分。 谢谢!!!
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IQBService" 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="65536"
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">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://QBES:3790/Bullfrog/QBService/QBService"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IQBService"
contract="IQBService" name="WSHttpBinding_IQBService">
<identity>
<userPrincipalName value="twaldron.Bullfrogspas" />
</identity>
</endpoint>
</client>
【问题讨论】: