同时消耗wcf获得异常

时间:2014-07-05 09:49:02

标签: c# wcf iis windows-phone-8

我正在从我的wp8应用程序中使用wcf服务我正在进行通信异常 以下是异常的截图

enter image description here

以下是wcf

的消费代码
 ServiceReference1.Service1Client sclient;

        public MainPage()
        {
            InitializeComponent();


                sclient = new ServiceReference1.Service1Client(new System.ServiceModel.BasicHttpBinding(), new EndpointAddress("http://192.168.1.127:80/Service1.svc"));


           // var mobileDataService = new MobileDataServiceClient(new MobileDataServiceClient.EndpointConfiguration(), new EndpointAddress(address));
            UserDetails info = new UserDetails();
            info.Id = 2323;
            sclient.InsertUserDetailsAsync(info);
           // sclient.InsertUserDetailsCompleted += sclient_InsertUserDetailsCompleted; ;


            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }

        void sclient_InsertUserDetailsCompleted(object sender, InsertUserDetailsCompletedEventArgs e)
        {
            Debug.WriteLine("completed");
            this.res.Text = e.Result;
        }

0 个答案:

没有答案