| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 424 人关注过本帖
标题:wcf代码有点问题,求高手
只看楼主 加入收藏
zfxueheng
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-8-9
结帖率:50%
收藏
已结贴  问题点数:20 回复次数:1 
wcf代码有点问题,求高手
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ch26Ex01Client.ServiceReference1;
namespace ch26Ex01Client.ServiceReference1
{
    class Program
    {
        static void Main(string[] args)
        {
            string numericInput = null ;
            int intParam;
            do
            {
                Console.WriteLine(
                    "Enter an integer and press enter to call the WCF service.");
            numericInput = Console.ReadLine();
            }
            while (!int.TryParse(numericInput,out intParam));
            ServiceClient client=new ServiceClient();
            Console.WriteLine(client.GetData(intParam));
            Console.WriteLine("press an key to exit.");
            Console.ReadKey();
        }
    }
}
这个代码是按照C#经典入门那本书敲得,但总是有错误,求高手
搜索更多相关主题的帖子: void service null Enter 
2012-08-14 16:03
浪迹V星痕
Rank: 2
等 级:论坛游民
帖 子:13
专家分:30
注 册:2012-8-7
收藏
得分:20 
回复 楼主 zfxueheng
这个看不到底层,错误具体也不好说!你最好是先设个断点 单一执行看看具体是那个地方错了 ?好给你解决
2012-08-15 16:30
快速回复:wcf代码有点问题,求高手
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013913 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved