简体   繁体   English

错误1找不到类型或名称空间名称'ProductServiceClient'(您是否缺少using指令或程序集引用?)

[英]Error 1 The type or namespace name 'ProductServiceClient' could not be found (are you missing a using directive or an assembly reference?)

Just trying to create a wcf test client. 只是尝试创建一个wcf测试客户端。 I added a service client using GardenClient.GardenServiceReference; 我使用GardenClient.GardenServiceReference添加了一个服务客户端; I have the project on http://github.com/vboyz2knight/WcfGardenService using 2010 visual studio IDE 我使用2010 visual studio IDE在http://github.com/vboyz2knight/WcfGardenService上拥有该项目

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GardenClient.GardenServiceReference;


namespace GardenClient
{
    class Program
    {
        static void Main(string[] args)
        {
            //Trying to create a test client
            ProductServiceClient client = new ProductServiceClient();
        }
    }
}

You probably are missing a wcf service assembly reference. 您可能缺少wcf服务程序集参考。 You can add it via Solution -> Project -> Add Service Reference. 您可以通过解决方案->项目->添加服务参考来添加它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 c#错误1找不到类型或名称空间名称”(是否缺少using指令或程序集引用?) - c# Error 1 The type or namespace name '' could not be found (are you missing a using directive or an assembly reference?) 获取错误找不到类型或命名空间名称“T”(您是否缺少using指令或程序集引用?) - Getting error The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?) 错误:找不到类型或命名空间名称“SqlCe”(您是否缺少 using 指令或程序集引用?) - Error: The type or namespace name 'SqlCe' could not be found (are you missing a using directive or an assembly reference?) 错误14找不到类型或命名空间名称“Document”(您是否缺少using指令或程序集引用?) - Error 14 The type or namespace name 'Document' could not be found (are you missing a using directive or an assembly reference?) 错误 CS0246 找不到类型或命名空间名称“CreateRandomAnswersForKey”(您是否缺少 using 指令或程序集引用?)? - Error CS0246 The type or namespace name 'CreateRandomAnswersForKey' could not be found (are you missing a using directive or an assembly reference?)? 错误 CS0246:找不到类型或命名空间名称“IWebHostEnvironment”(您是否缺少 using 指令或程序集引用?) - error CS0246: The type or namespace name 'IWebHostEnvironment' could not be found (are you missing a using directive or an assembly reference?) 为什么会出现这个错误? “找不到类型或名称空间名称'c'(您是否缺少using指令或程序集引用?)” - Why this error ? “The type or namespace name 'c' could not be found (are you missing a using directive or an assembly reference?)” 错误1找不到类型或名称空间名称'FPSTimer'(您是否缺少using指令或程序集引用?) - Error 1 The type or namespace name 'FPSTimer' could not be found (are you missing a using directive or an assembly reference?) 错误 CS0246:找不到类型或命名空间名称“BannerPosition”是否缺少 using 指令或程序集引用? - error CS0246: The type or namespace name 'BannerPosition' could not be found are you missing a using directive or an assembly reference? 错误 CS0246:找不到类型或命名空间名称“Npgsql”(您是否缺少 using 指令或程序集引用?) - error CS0246: The type or namespace name 'Npgsql' could not be found (are you missing a using directive or an assembly reference?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM