本帖最后由 qiujialongjjj 于 2012-11-08 16:51:32 编辑

解决方案 »

  1.   


    public WcfServiceClient GetClient()
    {
            SMC.Binding binding = WcfServiceClient.CreateDefaultBinding();
            string remoteAddress = WcfServiceClient.EndpointAddress.Uri.ToString();
            EndpointAddress endpoint = new EndpointAddress(remoteAddress);
            WcfServiceClient client = new WcfServiceClient(binding, endpoint);
            return client;
    }
      

  2.   


    EndpointAddress endpoint = new EndpointAddress(remoteAddress);报以下错误
    错误 2 “WcfServiceClient.EndpointAddress”是“字段”,但此处被当做“类型”来使用 C:\Documents and Settings\Administrator\桌面\v2.6\Windows CE\Samples VS2008\C#\CS_Barcode2ControlSample1\WcfService\WcfService.cs 151 9 WirelessRouteSystem