无法添加服务引用 [英] Can't add service reference

查看:102
本文介绍了无法添加服务引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从VS 2010添加SSL WCF服务的服务参考。



下载''https:xxx.svc''时出错。请求失败,HTTP状态为403:Forbidden。元数据包含无法解析的引用:''https:xxx.svc''。客户端身份验证方案匿名禁止HTTP请求。远程服务器返回错误:(403)禁止。如果在当前解决方案中定义了服务,请尝试构建解决方案并再次添加服务引用。



请帮助

I can''t add service reference to SSL WCF Service from VS 2010.

There was an error downloading ''https:xxx.svc''. The request failed with HTTP status 403: Forbidden. Metadata contains a reference that cannot be resolved: ''https:xxx.svc''. The HTTP request was forbidden with client authentication scheme ''Anonymous''. The remote server returned an error: (403) Forbidden. If the service is defined in the current solution, try building the solution and adding the service reference again.

Please Help

推荐答案

我曾经遇到过这个问题而且相信我,我尝试了很多,但找不到任何可行的解决方案。



你可以做一个thing.Check如果它需要身份验证。

如果你看到一切正确,那么错误在VS_2010。



我建议在VS_2012中尝试一下。
I faced this issue once & believe me I tried a lot but couldn''t find any working solution to it.

U can do one thing.Check if anywhere it''s requiring authentication.
& if u see everything right, then error is in VS_2010.

I''d suggest give a try to it in VS_2012.


我想出来了,问题是这个你试图访问的页面是用安全套接字层(SSL)保护的。 所以我不得不取消选中IIS上的需要SSL选项并且它有效,我的服务参考已成功添加。



谢谢。
I figured it out, the problem was this "The page you are trying to access is secured with Secure Sockets Layer (SSL)." So i had to uncheck the ''Require SSL'' option on IIS and it worked, my service reference was successfully added.

Thank you.


这篇关于无法添加服务引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆