WCF在localhost中添加,但不会在Internet上添加到我的项目中 [英] WCF added at localhost but will not be added on the Internet to my project

查看:85
本文介绍了WCF在localhost中添加,但不会在Internet上添加到我的项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友

我在本地WCF工作,但是当它发布并上传到主机上时(例如:http://service.mysite.com/admin/Service .svc),然后在网站解决方案和添加服务参考点击并输入URL并单击Go按钮,该服务不会添加到我的解决方案并显示此错误:

尝试查找服务时出错在http



下载'http://service.mysite.com/admin/Service.svc/_vti_bin/ListData.svc/$metadata'时出错。

请求失败并显示错误消息:

...



请帮帮我



我的web.config:

http ://s3.picofile.com/file/8196943226/conf2.jpg [ ^ ]



Service.svc文件:

http://s3.picofile.com/file/8196943384/conf3_svc.jpg [ ^ ]



错误信息:

http://s6.picofile.com/file/8196943476/confe.jpg [ ^ ]



帮帮我

Hi my friends
I 've made in the local WCF works but when it Publish and upload it on a host (for example: http://service.mysite.com/admin/Service.svc), then in website solution and Add service reference click and enter URL and click Go button, the service does not add to my solution and show this error:
an error occurred while attempting to find services at http

There was an error downloading 'http://service.mysite.com/admin/Service.svc/_vti_bin/ListData.svc/$metadata'.
The request failed with the error message:
...

please help me

my web.config:
http://s3.picofile.com/file/8196943226/conf2.jpg[^]

Service.svc file:
http://s3.picofile.com/file/8196943384/conf3_svc.jpg[^]

Error message:
http://s6.picofile.com/file/8196943476/confe.jpg[^]

Help me

推荐答案

元数据'。

请求失败并显示错误消息:

...



请帮帮我



我的web.config:

http://s3.picofile.com/file/8196943226/conf2.jpg [ ^ ]



服务。 svc文件:

http://s3.picofile.com/file/8196943384/conf3_svc.jpg [ ^ ]



错误信息:

http://s6.picofile.com/file/8196943476/confe.jpg [ ^ ]



帮助我
metadata'.
The request failed with the error message:
...

please help me

my web.config:
http://s3.picofile.com/file/8196943226/conf2.jpg[^]

Service.svc file:
http://s3.picofile.com/file/8196943384/conf3_svc.jpg[^]

Error message:
http://s6.picofile.com/file/8196943476/confe.jpg[^]

Help me


在您的web.config中,您使用basicHttpsBindig和scheme https。 AFAIK为此目的,您的客户端和服务器应该共享SSL证书,否则它将不是可信连接。您也可以尝试阅读这两个链接:



http://stackoverflow.com/questions/14874529/what-is-the-difference-between-basichttpsbinding-and-wshttpbinding-with-transpor [ ^ ]



http://stackoverflow.com/questions/21513205/changing-from-basichttpbinding-to-basichttpsbinding-not-working [ ^ ]
In your web.config you use basicHttpsBindig and scheme https. AFAIK for this purpose your client and server should share SSL certificate, othervise it will not be trusted connection. Also you can try to read these two links:

http://stackoverflow.com/questions/14874529/what-is-the-difference-between-basichttpsbinding-and-wshttpbinding-with-transpor[^]

http://stackoverflow.com/questions/21513205/changing-from-basichttpbinding-to-basichttpsbinding-not-working[^]


这篇关于WCF在localhost中添加,但不会在Internet上添加到我的项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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