perfectxml.com
 Basic Search  Advanced Search   
Topics Resources Free Library Software XML News About Us
home » info bank » .NET XML KB Articles » PRB Sat, Jul 14, 2007
.NET XML KB Articles
PRB

HOW TO INFO BUG PRB FIX

Page: 1  2  3  

Problems Using an XML Web Service that Returns a DataTable
KB: 306134
When you browse to the URL of an XML Web service that returns a DataTable from one of its Web methods, you may receive the following error message:

System.Data.DataRelation cannot be serialized because it does not have a default public constructor.

You may also see an error message similar to the following when you try to set a Web reference to this XML Web service in the Visual Studio .NET integrated development environment (IDE):

Internal Server Error. Unable to request "http://localhost/Webservice1/Service1.asmx?WSDL". The server responded with error code "ProtocolError".

The DataTable, DataRow, DataView, and DataViewManager objects cannot be serialized and cannot be returned from an XML Web service. To return less than a complete DataSet, you must copy the data that you want to return to a new DataSet.
View this KB Article...


Page: 1  2  3  

  Contact Us | E-mail Us | Site Guide | About PerfectXML | Advertise ©2004 perfectxml.com. All rights reserved. | Privacy