在“带有目标失败的服务名的WCF SOAP安全协商"中需要帮助. [英] Need help in "WCF SOAP Security Negotiation with Servicename for target Failed"
问题描述
大家好, <
我在项目中使用的是WCF.我正在尝试运行Windows应用程序
调用服务WCF.我正在使用 < 安全性 模式 = " 消息 " >
和
wsHttpBinding绑定.
当我在同一系统上运行服务器和客户端时,我的应用程序运行正常.
如果我将服务器更改为同一域中的其他系统(我尝试从我的服务器连接到服务客户端),给我以下错误:
与
' http://dccmpSys1.mah.org/ServiceNameSample/Service.svc '作为目标
' http ://dccmpSys1.mah.org/ServiceNameSample/Service.svc '失败
checkList:
1.service托管在具有域的SERVER上,并且启用了匿名身份验证.
2.Binding是 wsHttpBinding和安全模式消息级别.
3.我在配置文件中的绑定:如下
< readerQuotas <字体color =#0000ff" size = 2> maxDepth = " 32 " maxStringContentLength <字体颜色=#0000ff" size = 2> = " 8192 " <字体color =#0000ff" size = 2> maxArrayLength = " 16384 " maxBytesPerRead <字体颜色=#0000ff" size = 2> = " 4096 " maxNameTableCharCount = " 16384 " />
< reliableSession 已订购 = " true " inactivityTimeout = " 00:10:00 " 已启用 <字体颜色=#0000ff" size = 2> = " false " />
< 安全性 模式 <字体颜色=#0000ff" size = 2> <字体颜色=#0000ff" size = 2> = " 消息 " >
< 运输 clientCredentialType = " Windows " proxyCredentialType = " 无 " 领域 <字体color =#0000ff" size = 2> = "" />
< 消息 clientCredentialType 字体> = " Windows " negotiateServiceCredential = " true
</ 安全性 >
Hi all, <
I am using WCF in my project. and I am trying to run an windows application
that calls to a service WCF .I am using <security mode="Message">
and
wsHttpBinding binding.
When i am running my server and client on the same system my application works fine.
if i change the server to other system in the same domain ( I try to connect to service from my client)
, gives me error as follows:
SOAP Security negotiation with
'http://dccmpSys1.mah.org/ServiceNameSample/Service.svc' for target
'http://dccmpSys1.mah.org/ServiceNameSample/Service.svc' failed
checkList :
1.service is hosted on SERVER with in the domain,with anonymous authentication enabled.
2.Binding is wsHttpBinding and security mode message level.
3. My binding in config file: As below
<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" establishSecurityContext="true" />
</security>
</ 绑定 <字体颜色=#0000ff" size = 2>>
</binding>
4.和我的终点地址:
4. and my end point address :
< 端点 地址 = http://dccmpSys1.mah.org/ServiceNameSample/Service.svc <字体颜色=#ff0000" size = 2>行为配置 <字体颜色=#0000ff" size = 2> <字体颜色=#0000ff" size = 2> = " SServiceBehavior " 绑定 <字体颜色=#0000ff" size = 2> = " wsHttpBinding " bindingConfiguration = " WSHttpBinding_ISService " 合同 <字体颜色=#0000ff" size = 2> = " ISService " 名称 = " WSHttpBinding_ISService " >
< 身份 >
< userPrincipalName value = " dccmpSys1.mah.org \ ASPNET " />
</ 身份 >
</ 端点 >
感谢您的帮助.
>
<endpoint address=http://dccmpSys1.mah.org/ServiceNameSample/Service.svc behaviorConfiguration="SServiceBehavior" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISService" contract="ISService" name="WSHttpBinding_ISService">
<identity>
<userPrincipalName value="dccmpSys1.mah.org\ASPNET" />
</identity>
</endpoint>
Any help will be appreciated, thanks in advance.
推荐答案
您的清单很好.另外尝试:
Your checklist is good. Additionally try:
这篇关于在“带有目标失败的服务名的WCF SOAP安全协商"中需要帮助.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!