本文介绍了WCF配置,WCF在localhost上工作但在服务器上不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您好 我的 朋友 我 've local WCF 工作 但 当 它 发布 和 上传 它 on a host (适用于 示例: http: // service.mysite.com/admin/Service.svc),然后在网站解决方案和添加服务引用中单击并输入URL并单击Go按钮,该服务不会添加到我的解决方案并显示此错误: 错误 发生 而 尝试 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 friendsI '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 httpThere 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 memy 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 memy 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上工作但在服务器上不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-05 22:04