添加服务时出错 [英] error while adding service

查看:66
本文介绍了添加服务时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在.net中添加服务时出现此错误

类型或名称空间名称' Service1'找不到(您是否缺少using指令或程序集引用?)
您可以帮忙吗?

i am getting this error while adding service in .net

The type or namespace name 'Service1' could not be found (are you missing a using directive or an assembly reference?)
can u help??

推荐答案

好像您缺少要在应用程序中使用的Web服务的Web参考. 您需要将Webservice-Reference添加到您的项目中,以便创建该服务的对象并使用它.

右键单击您的项目,然后使用添加Web引用"选项来引用Web服务.完成后,您应该能够在您的应用程序中创建此服务的对象.
Looks like you are missing the Web reference of the web service you want to consume in your application.
You need to add the Webservice-Reference to your project in order to create an object of that service and consume it.

Right click your project and use the option of ''Add Web Reference'' to refer the web service. Once done, you should be able to create object of this service in your application.


这篇关于添加服务时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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