ปัญหากดรัน windows app แล้วขึ้นแบบนี้อ่ะครับ ผมใช้ webservice ผ่าน xsd อีกรอบหนึ่ง
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. at System.Data.DataTable.EnableConstraints() at System.Data.DataTable.set_EnforceConstraints(Boolean value) at System.Data.DataTable.EndLoadData() at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at Login.Data_QueryTableAdapters.UserLoginTableAdapter.detail_brand() in E:\App_XSD\Login\Data_Query.Designer.vb:line 3670 at Login.brand.detailbrand() in E:\App_XSD\Login\brand.asmx.vb:line 23 --- End of inner exception stack trace ---