Cannot add a nested relation or an element column to a table containing a SimpleContent column

前端 未结 4 1343
执念已碎
执念已碎 2020-12-04 01:55

Hi iam write this code

\"

 XmlTextReader read = new XmlTextReader(\"http://msdn.microsoft.com/rss.xml\");
        DataSet ds = new DataSet();
                


        
4条回答
  •  旧时难觅i
    2020-12-04 02:42

    In my case this error appeared on WCF client's side. On WCF server's side it was caused by missing SQL SELECT permission on a function -- System.Data.SqlClient.SqlException.

    WCF client trying to deserialize a dataset, which was obviously not there, kept displaying "Cannot add a SimpleContent..." error. I would not call it a misleading message, but rather one that must be interpreted properly.

提交回复
热议问题