本文介绍了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:

[]



Service.svc文件:

[]



错误信息:

[]



帮帮我

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

推荐答案



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

11-01 17:56