在MS的Visual Web Developer中,我有一个完全默认的ASP.NET Web服务项目和另一个项目。当使用右键菜单上的第二个项目运行“添加服务引用”,我能找到列为选项的第一个项目,但我得到一个错误,当我尝试选择它,我得到一个错误“添加服务引用”失败VS
Metadata contains a reference that cannot be resolved: 'http://0.0.0.0:3495/Service1.asmx?wsdl'. There was an error downloading 'http://0.0.0.0:3495/Service1.asmx?wsdl'. Unable to connect to the remote server The requested address is not valid in its context 0.0.0.0:3495 Metadata contains a reference that cannot be resolved: 'http://localhost:3495/Service1.asmx'. Metadata contains a reference that cannot be resolved: 'http://localhost:3495/Service1.asmx'. If the service is defined in the current solution, try building the solution and adding the service reference again.
我在使用WCF服务时也遇到同样的问题。
我在做什么错?
我发现this reference有this service和事情的工作。 (WhyT_不默认服务只是工作?)
没有喜悦,按Ctrl-F5似乎开始服务,但我仍然得到同样的错误,如果只是F5变灰“添加服务”选项,并IIRC没有工作,即使我在另一个VS会话中打开相同的解决方案。 – BCS 2009-04-17 21:53:14
嗯......你可以尝试使用IIS来调试你的服务,然后尝试添加引用。 – 2009-04-17 21:55:32