WCF配置,WCF在localhost上工作但在服务器上不工作 [英] WCF Config, WCF Work at localhost but on server not working

查看:67
本文介绍了WCF配置,WCF在localhost上工作但在服务器上不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 您好 我的 朋友 
've local WCF 工作 发布 上传 on a host (适用于 示例: http: // service.mysite.com/admin/Service.svc),然后在网站解决方案和添加服务引用中单击并输入URL并单击Go按钮,该服务不会添加到我的解决方案并显示此错误:
错误 发生 尝试 < span class =code-leadattribute> find services at http

e rror 正在下载 'http: // service.mysite.com/admin/Service.svc/_vti_bin/ListData.svc/$metadata'。
请求 失败 with 错误 消息:
...

help me

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

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

错误 消息:
http: // s6.picofile.com/file/8196943476/confe.jpg [^]

解决方案

元数据'。
request failed with the 错误 消息:
...

help me

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

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

错误 消息:
http: // s6.picofile.com/file/8196943476/confe.jpg [^]


您的网络配置中没有端点,只需查看示例并参考以下链接获取wcf



[ ^ ]



这将解决您的问题

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[^]

解决方案

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[^]


End points are not available in your web config, just check an example and refer to below link for wcf

[^]

This will solve your problem


这篇关于WCF配置,WCF在localhost上工作但在服务器上不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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