问题描述
你好
我有我的WCF服务,该服务是通过create->创建的.新网站和WCF服务.我的服务是连接到数据库并返回客户端可以在数据网格中查看的数据的东西.当我只测试服务正常时.
I have my WCF service which is created as create --> new website and WCF service. My service is something that connects to the database and returns the data which clients can view in a datagrid. when i test just the service its fine.
现在,我想使用带有用户名身份验证的WS Http绑定和带有消息凭据的传输"我遵循了msdn论坛中指定的所有步骤 http://msdn.microsoft.com/zh-我们/library/cc949010.aspx 一切正常.我什至创建了证书并将其安装在受信任的根颁发机构文件夹中.但是最后,当我尝试创建和客户端并尝试访问服务时,它会抛出异常
Now i wanted to use "WS Http binding with username authentication and transport with message credentials" I foollowed all the steps specified in msdn forum http://msdn.microsoft.com/en-us/library/cc949010.aspx and everything went fine. I even created the certificate and installed in trusted root authorities folder. But in the end when am trying to create and client and trying to access the service, its throwing the exception
"无法与本地存储建立信任关系SSL/TLS.我不知道是什么错误.
"could not establish the trust relationship SSL/TLS with local store . I could not figure out whats the error.
我认为,因为我的应用程序处于ASP.NET框架中,并且正在使用IIS 5.1,因为我的计算机是Win XP机器.这可能是个问题吗?伙计们请帮忙,我的工作来了.
I think, for my application is in ASP.NET frame work and am using IIS 5.1 as mine is a win XP machine. Can this might be a problem?? Guys please help, my work is struck here.
谢谢
推荐答案
在测试中,您可以按照以下说明禁用此检查:
In testing you can disable this check as explained here:
http://webservices20.blogspot.com/2008/12/wcf -gotcha-disabling-ssl-validation.html
这篇关于错误:ssl无法启用信任的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!