关于webservice的引用 [英] about references of webservice

查看:124
本文介绍了关于webservice的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对客户端冷杉测试服务...我添加了所有参考但仍然收到错误...定义如下... plz帮助我





i am amking client fir testing the service... i had added all the references but still getting error... defined below... plz help me


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ConsoleApplication3.ServiceReference1;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceReference1Client cl = new ServiceReference1Client();
            cl.close();


        }
    }
}





错误1类型找不到或命名空间名称'ServiceReference1Client'(您是否缺少using指令或程序集引用?)D:\usb \ saba final pjct\test\test\ConsoleApplication3 \Program.cs 13 13 ConsoleApplication3



Error 1 The type or namespace name 'ServiceReference1Client' could not be found (are you missing a using directive or an assembly reference?) D:\usb\saba final pjct\test\test\ConsoleApplication3\Program.cs 13 13 ConsoleApplication3

推荐答案

如果您有所有数据到wwwroot文件夹下的子文件夹,

更改将App_WebReference文件夹复制到wwwroot文件夹的根目录!

并查看下面的链接

why-did-i-receive-the-error-the-type-or-namespace-lt-namespace-name-gt-does-not-exist-内式类或名称空间LT-父命名空间-GT-被-你缺失 - 一个组件,参考, nce.aspx [ ^ ]
If you Have all data to a subfolder under the wwwroot folder,
Change to copy the App_WebReference folder to the root of wwwroot folder !
And see the folowing link
why-did-i-receive-the-error-the-type-or-namespace-lt-namespace-name-gt-does-not-exist-in-the-class-or-namespace-lt-parent-namespace-gt-are-you-missing-an-assembly-reference.aspx[^]


这篇关于关于webservice的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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