G
Guest
Hi,
I've created a strongly-typed DataSet that contains one DataTable. My
intent is to return this DataTable from a WebService that will be consumed by
a Windows Form. In my windows application, when I add a reference to the Web
Service, the proxy code that is generated in the Reference.vb file throws the
following errors:
"sub 'ReadXmlSerializable' cannot be declared 'Overrides' because it does
not override a sub in a base class."
AND
"Protected Overrides Function GetSchemaSerializable() As
System.Xml.Schema.XmlSchema' cannot override 'Protected Overridable Function
GetSchemaSerializable() As System.Xml.Schema.XmlSchema' because they differ
by their return types."
I can workaround this by removing the overrides directive from these
methods, but a warning is then generated saying they should be marked with
the overrides directive.
I was having this problem earlier today in the Designer.vb file associated
with the .xsd file of my DataSet before the WebService project was added to
the solution and got rid of it by deleting everything and starting with a
fresh solution and recreating my strongly-typed DataSet.
I'm a bit farther along in the solution this time, so starting over again is
not an option. In the meantime I can live with the warnings, but I have
about 20 or 30 more strongly-typed DataSets and DataTables to create, so a
fix for this would be great.
Thanks.
I've created a strongly-typed DataSet that contains one DataTable. My
intent is to return this DataTable from a WebService that will be consumed by
a Windows Form. In my windows application, when I add a reference to the Web
Service, the proxy code that is generated in the Reference.vb file throws the
following errors:
"sub 'ReadXmlSerializable' cannot be declared 'Overrides' because it does
not override a sub in a base class."
AND
"Protected Overrides Function GetSchemaSerializable() As
System.Xml.Schema.XmlSchema' cannot override 'Protected Overridable Function
GetSchemaSerializable() As System.Xml.Schema.XmlSchema' because they differ
by their return types."
I can workaround this by removing the overrides directive from these
methods, but a warning is then generated saying they should be marked with
the overrides directive.
I was having this problem earlier today in the Designer.vb file associated
with the .xsd file of my DataSet before the WebService project was added to
the solution and got rid of it by deleting everything and starting with a
fresh solution and recreating my strongly-typed DataSet.
I'm a bit farther along in the solution this time, so starting over again is
not an option. In the meantime I can live with the warnings, but I have
about 20 or 30 more strongly-typed DataSets and DataTables to create, so a
fix for this would be great.
Thanks.