将Web引用添加到项目时出现错误

编程入门 行业动态 更新时间:2024-10-11 03:17:20
本文介绍了将Web引用添加到项目时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我向我的项目添加Web服务参考时,我收到错误..

错误 下载 'http: // localhost:42030 / Service1.asmx'。 无法 to connect to the 远程 服务器 否 connection be made ,因为 target machine active 拒绝 它 127 。 0 。 0 。 1:42030 错误 下载 'http: // localhost:42030 / Service1.asmx / $ metadata'。

请帮助我解决方案

元数据'。

请帮助我

这是因为当您在此时添加Web引用时,它会检查该Web URL是否可用且可ping,但在您的情况下,您尝试添加一些本地Web URL,这是在您添加Web Reference的那一刻不会生效。 让您的web Servive(Service1.asmx)保持运行模式,然后尝试添加Web Reference。

when i am adding web service refrence to my project than i am getting error..

There was an error downloading 'localhost:42030/Service1.asmx'. Unable to connect to the remote server No connection could be made because the target machine actively refused it 127.0.0.1:42030 There was an error downloading 'localhost:42030/Service1.asmx/$metadata'.

kindly help me

解决方案

metadata'.

kindly help me

It is because when you are adding the Web Reference at that time it checks for that Web URL to be live and pingable, but in your case you are trying to add some local Web URL which is not live at the moment you are adding Web Reference. Keep your web Servive(Service1.asmx) in running mode and then try to add Web Reference.

更多推荐

将Web引用添加到项目时出现错误

本文发布于:2023-11-09 04:09:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571365.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:出现错误   项目   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!