SYMPTOMS
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".
With the .NET Framework 1.1 Service Pack 1 (SP1), you may receive the following error message:
System.NotSupportedException: Cannot serialize member System.ComponentModel.MarshalByValueComponent.Site of type System.ComponentModel.ISite because it is an interface.
You may also receive a blank page instead of any of these error messages if
Show friendly HTTP error messages is enabled in Microsoft Internet Explorer. By default, the
Show friendly HTTP error messages option is enabled.
If you try to add a Web reference to an XML Web service that returns a DataTable, you may receive the following error message:
The document at the url http://<server>/vdir/service1.asmx was not recognized as a known document type.