0

因此,当我尝试在 WCF 应用程序中保存更改时,我不断收到此错误

 private void button1_Click(object sender, RoutedEventArgs e)
    {
       MBEMEADataContext cc = new MBEMEADataContext(new Uri("http://ldnmbl-sp10dev/sites/mbemea/_vti_bin/listdata.svc"));
       cc.Credentials = System.Net.CredentialCache.DefaultCredentials;

        var source = cc.CaseStudies;
        cc.AddToCaseStudies(
            new CaseStudiesItem
        {
            Title = textBox1.Text,
            Client = textBox2.Text

        });
        cc.SaveChanges();

    }

cc.SaveChanges();被调用时,我得到“DataServiceRequestException 未处理”,我不知道为什么

4

0 回答 0