470,626 Members | 2,205 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,626 developers. It's quick & easy.

Problem with typed dataset

Visual Studio 2005 - SP1 - VB.Net on WinXP SP2

I add a typed dataset to my solution and get the following errors :

Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides' because it
does not override a sub in a base class.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRepo rt.Designer.vb 125 29
TRM8.UI

Error 2 '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.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRepo rt.Designer.vb 145 34
TRM8.UI

I have a reference to System.Xml.

If I start a new project, and add a typed dataset, this error does not
occur.

Can anyone help me with this frustrating problem.

TIA
Jan 3 '07 #1
8 1877
How are you adding the typed dataset to your solution?

Robin S.
---------------------------
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:gM*******************@nasal.pacific.net.au...
Visual Studio 2005 - SP1 - VB.Net on WinXP SP2

I add a typed dataset to my solution and get the following errors :

Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides'
because it does not override a sub in a base class.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRepo rt.Designer.vb 125
29 TRM8.UI

Error 2 '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.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRepo rt.Designer.vb 145
34 TRM8.UI

I have a reference to System.Xml.

If I start a new project, and add a typed dataset, this error does not
occur.

Can anyone help me with this frustrating problem.

TIA

Jan 3 '07 #2
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dI******************************@comcast.com. ..
How are you adding the typed dataset to your solution?

Robin S.
---------------------------
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:gM*******************@nasal.pacific.net.au...
>Visual Studio 2005 - SP1 - VB.Net on WinXP SP2

I add a typed dataset to my solution and get the following errors :

Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides' because
it does not override a sub in a base class.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRep ort.Designer.vb 125 29
TRM8.UI

Error 2 '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.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRep ort.Designer.vb 145 34
TRM8.UI

I have a reference to System.Xml.

If I start a new project, and add a typed dataset, this error does not
occur.

Can anyone help me with this frustrating problem.

TIA
Project/Add New Item/Dataset......

The whole thing is then built by the IDE. Error appears immediately. Adding
an actual query (Sql 2005) via Server Explorer does not make the problem go
away
Jan 3 '07 #3
"Harry Strybos" <ha***@nospam.com.auwrote in message
news:53**************@news-server.bigpond.net.au...
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dI******************************@comcast.com. ..
>How are you adding the typed dataset to your solution?

Robin S.
---------------------------
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:gM*******************@nasal.pacific.net.au.. .
>>Visual Studio 2005 - SP1 - VB.Net on WinXP SP2

I add a typed dataset to my solution and get the following errors :

Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides'
because it does not override a sub in a base class.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRe port.Designer.vb 125
29 TRM8.UI

Error 2 '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.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingRe port.Designer.vb 145
34 TRM8.UI

I have a reference to System.Xml.

If I start a new project, and add a typed dataset, this error does
not occur.

Can anyone help me with this frustrating problem.

TIA
Project/Add New Item/Dataset......

The whole thing is then built by the IDE. Error appears immediately.
Adding an actual query (Sql 2005) via Server Explorer does not make
the problem go away
What is your dataset called? Are you calling it something that already
exists somewhere within your sollutino? The errors above are from
BillingReport.Designer.vb -- is BillingReport the name of your dataset?
Is it something else within your project?

Robin S.
Jan 3 '07 #4
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:to******************************@comcast.com. ..
"Harry Strybos" <ha***@nospam.com.auwrote in message
news:53**************@news-server.bigpond.net.au...
>"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dI******************************@comcast.com ...
>>How are you adding the typed dataset to your solution?

Robin S.
---------------------------
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:gM*******************@nasal.pacific.net.au. ..
Visual Studio 2005 - SP1 - VB.Net on WinXP SP2

I add a typed dataset to my solution and get the following errors :

Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides'
because it does not override a sub in a base class.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingR eport.Designer.vb 125 29
TRM8.UI

Error 2 '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.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\BillingR eport.Designer.vb 145 34
TRM8.UI

I have a reference to System.Xml.

If I start a new project, and add a typed dataset, this error does not
occur.

Can anyone help me with this frustrating problem.

TIA

Project/Add New Item/Dataset......

The whole thing is then built by the IDE. Error appears immediately.
Adding an actual query (Sql 2005) via Server Explorer does not make the
problem go away

What is your dataset called? Are you calling it something that already
exists somewhere within your sollutino? The errors above are from
BillingReport.Designer.vb -- is BillingReport the name of your dataset? Is
it something else within your project?

Robin S.
"BillingReport" is the name of the dataset.
That name or type does not exist elsewher in my solution. I di try this with
the same solution in my home office and the same problem occurs.

Just to add to all of this, I do have some reasonable experience with VS
2005, as IT Manager of an SME.

Thank you.
Jan 3 '07 #5

"Harry Strybos" <ha***@nospam.com.auwrote in message
news:a%**************@news-server.bigpond.net.au...
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:to******************************@comcast.com. ..
>"Harry Strybos" <ha***@nospam.com.auwrote in message
news:53**************@news-server.bigpond.net.au...
>>"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dI******************************@comcast.co m...
How are you adding the typed dataset to your solution?

Robin S.
---------------------------
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:gM*******************@nasal.pacific.net.au ...
Visual Studio 2005 - SP1 - VB.Net on WinXP SP2
>
I add a typed dataset to my solution and get the following errors
:
>
Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides'
because it does not override a sub in a base class.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Billing Report.Designer.vb
125 29 TRM8.UI
>
Error 2 '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.
C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Billing Report.Designer.vb
145 34 TRM8.UI
>
I have a reference to System.Xml.
>
If I start a new project, and add a typed dataset, this error does
not occur.
>
Can anyone help me with this frustrating problem.
>
TIA
>

Project/Add New Item/Dataset......

The whole thing is then built by the IDE. Error appears immediately.
Adding an actual query (Sql 2005) via Server Explorer does not make
the problem go away

What is your dataset called? Are you calling it something that
already exists somewhere within your sollutino? The errors above are
from BillingReport.Designer.vb -- is BillingReport the name of your
dataset? Is it something else within your project?

Robin S.
"BillingReport" is the name of the dataset.
That name or type does not exist elsewher in my solution. I di try
this with the same solution in my home office and the same problem
occurs.

Just to add to all of this, I do have some reasonable experience with
VS 2005, as IT Manager of an SME.
I wasn't assuming you were a newbie; we all make these kinds of mistakes
once in a while, and it never hurts to doublecheck.

Does it only happen when you add that specific dataset? Are you choosing
a table in your database? Does it work when you pick a different table?

Robin S.
Jan 3 '07 #6
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dv******************************@comcast.com. ..
>
"Harry Strybos" <ha***@nospam.com.auwrote in message
news:a%**************@news-server.bigpond.net.au...
>"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:to******************************@comcast.com ...
>>"Harry Strybos" <ha***@nospam.com.auwrote in message
news:53**************@news-server.bigpond.net.au...
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dI******************************@comcast.c om...
How are you adding the typed dataset to your solution?
>
Robin S.
---------------------------
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:gM*******************@nasal.pacific.net.a u...
>Visual Studio 2005 - SP1 - VB.Net on WinXP SP2
>>
>I add a typed dataset to my solution and get the following errors :
>>
>Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides'
>because it does not override a sub in a base class.
>C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Billin gReport.Designer.vb 125
>29 TRM8.UI
>>
>Error 2 '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.
>C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Billin gReport.Designer.vb 145
>34 TRM8.UI
>>
>I have a reference to System.Xml.
>>
>If I start a new project, and add a typed dataset, this error does
>not occur.
>>
>Can anyone help me with this frustrating problem.
>>
>TIA
>>
>
Project/Add New Item/Dataset......

The whole thing is then built by the IDE. Error appears immediately.
Adding an actual query (Sql 2005) via Server Explorer does not make the
problem go away

What is your dataset called? Are you calling it something that already
exists somewhere within your sollutino? The errors above are from
BillingReport.Designer.vb -- is BillingReport the name of your dataset?
Is it something else within your project?

Robin S.
"BillingReport" is the name of the dataset.
That name or type does not exist elsewher in my solution. I di try this
with the same solution in my home office and the same problem occurs.

Just to add to all of this, I do have some reasonable experience with VS
2005, as IT Manager of an SME.

I wasn't assuming you were a newbie; we all make these kinds of mistakes
once in a while, and it never hurts to doublecheck.

Does it only happen when you add that specific dataset? Are you choosing a
table in your database? Does it work when you pick a different table?

Robin S.
My apologies. I wasn't trying to be beligerent. And you are quite right, we
all make some obvious mistakes from time to time.

I am able to reproduce this problem on a seconf development machine at my
home office. It seems there is something in my application (some 50 forms)
that is corrupting a reference somewhere. Interestingly, on one other
programmers machine, he can load my application and add a typed dataset
without error, yet when I load his update, the error reoccurs on my machine.
So, one machine does not show this error at all, two show it all the time
and one shows it in my application but not in a new project.

I have seen the same problem reported elsewhere but have not been able to
see any solutions. Searching the web with either of the error messages does
produce some results but no answere.

As I mentioned previously, the error occurs even before I assign a query or
table. While I am sure it is a bug (my other programmers have checked this
as well), there seems to be no apparent solution.

Perhaps somebody else may have the answer.

Cheers
Jan 3 '07 #7
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:Pv*******************@nasal.pacific.net.au...
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dv******************************@comcast.com. ..
>>
"Harry Strybos" <ha***@nospam.com.auwrote in message
news:a%**************@news-server.bigpond.net.au...
>>"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:to******************************@comcast.co m...
"Harry Strybos" <ha***@nospam.com.auwrote in message
news:53**************@news-server.bigpond.net.au...
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dI******************************@comcast. com...
>How are you adding the typed dataset to your solution?
>>
>Robin S.
>---------------------------
>"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
>news:gM*******************@nasal.pacific.net. au...
>>Visual Studio 2005 - SP1 - VB.Net on WinXP SP2
>>>
>>I add a typed dataset to my solution and get the following errors :
>>>
>>Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides'
>>because it does not override a sub in a base class.
>>C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Billi ngReport.Designer.vb 125
>>29 TRM8.UI
>>>
>>Error 2 '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.
>>C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Billi ngReport.Designer.vb 145
>>34 TRM8.UI
>>>
>>I have a reference to System.Xml.
>>>
>>If I start a new project, and add a typed dataset, this error does
>>not occur.
>>>
>>Can anyone help me with this frustrating problem.
>>>
>>TIA
>>>
>>
Project/Add New Item/Dataset......
>
The whole thing is then built by the IDE. Error appears immediately.
Adding an actual query (Sql 2005) via Server Explorer does not make
the
problem go away

What is your dataset called? Are you calling it something that already
exists somewhere within your sollutino? The errors above are from
BillingReport.Designer.vb -- is BillingReport the name of your dataset?
Is it something else within your project?

Robin S.
"BillingReport" is the name of the dataset.
That name or type does not exist elsewher in my solution. I di try this
with the same solution in my home office and the same problem occurs.

Just to add to all of this, I do have some reasonable experience with VS
2005, as IT Manager of an SME.

I wasn't assuming you were a newbie; we all make these kinds of mistakes
once in a while, and it never hurts to doublecheck.

Does it only happen when you add that specific dataset? Are you choosing
a
table in your database? Does it work when you pick a different table?

Robin S.
My apologies. I wasn't trying to be beligerent. And you are quite right,
we
all make some obvious mistakes from time to time.

I am able to reproduce this problem on a seconf development machine at my
home office. It seems there is something in my application (some 50 forms)
that is corrupting a reference somewhere. Interestingly, on one other
programmers machine, he can load my application and add a typed dataset
without error, yet when I load his update, the error reoccurs on my
machine.
So, one machine does not show this error at all, two show it all the time
and one shows it in my application but not in a new project.

I have seen the same problem reported elsewhere but have not been able to
see any solutions. Searching the web with either of the error messages
does
produce some results but no answere.

As I mentioned previously, the error occurs even before I assign a query
or
table. While I am sure it is a bug (my other programmers have checked this
as well), there seems to be no apparent solution.

Perhaps somebody else may have the answer.

Cheers
Found the answer, thanks to a fellow called Todd M. Taylor :

So, I've think that my solution file had something wrong or there was
something in one of my projects that affect the other ones. The only strange
project was that one that had no errors. So I've removed it and the errors
magically disappeared. Adding project again errors started to appear again.

I've opend my project file with notepad and I've found that System.Xml
reference was written in this way:
<Reference Include="System.Xml, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\WINDOWS\assembly\GAC_M SIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xm l.dll</HintPath>
</Reference>

I've changed this reference with this:
<Reference Include="System.Xml" />

.... and magically everything worked.

Cheers


Jan 3 '07 #8

"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:is*******************@nasal.pacific.net.au...
"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in message
news:Pv*******************@nasal.pacific.net.au...
>"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dv******************************@comcast.com ...
>>>
"Harry Strybos" <ha***@nospam.com.auwrote in message
news:a%**************@news-server.bigpond.net.au...
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:to******************************@comcast.c om...
"Harry Strybos" <ha***@nospam.com.auwrote in message
news:53**************@news-server.bigpond.net.au...
>"RobinS" <Ro****@NoSpam.yah.nonewrote in message
>news:dI******************************@comcast .com...
>>How are you adding the typed dataset to your solution?
>>>
>>Robin S.
>>---------------------------
>>"Harry Strybos" <ha**********@ffapaysmart.com.auwrote in
>>message
>>news:gM*******************@nasal.pacific.net .au...
>>>Visual Studio 2005 - SP1 - VB.Net on WinXP SP2
>>>>
>>>I add a typed dataset to my solution and get the following
>>>errors :
>>>>
>>>Error 1 sub 'ReadXmlSerializable' cannot be declared
>>>'Overrides'
>>>because it does not override a sub in a base class.
>>>C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Bill ingReport.Designer.vb
>>>125
>>>29 TRM8.UI
>>>>
>>>Error 2 '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.
>>>C:\AAProjects.Net\TRM8\TRM8.UI\Reports\Bill ingReport.Designer.vb
>>>145
>>>34 TRM8.UI
>>>>
>>>I have a reference to System.Xml.
>>>>
>>>If I start a new project, and add a typed dataset, this error
>>>does
>>>not occur.
>>>>
>>>Can anyone help me with this frustrating problem.
>>>>
>>>TIA
>>>>
>>>
>Project/Add New Item/Dataset......
>>
>The whole thing is then built by the IDE. Error appears
>immediately.
>Adding an actual query (Sql 2005) via Server Explorer does not
>make the
>problem go away
>
What is your dataset called? Are you calling it something that
already
exists somewhere within your sollutino? The errors above are from
BillingReport.Designer.vb -- is BillingReport the name of your
dataset?
Is it something else within your project?
>
Robin S.
"BillingReport" is the name of the dataset.
That name or type does not exist elsewher in my solution. I di try
this
with the same solution in my home office and the same problem
occurs.

Just to add to all of this, I do have some reasonable experience
with VS
2005, as IT Manager of an SME.

I wasn't assuming you were a newbie; we all make these kinds of
mistakes
once in a while, and it never hurts to doublecheck.

Does it only happen when you add that specific dataset? Are you
choosing a
table in your database? Does it work when you pick a different
table?

Robin S.
My apologies. I wasn't trying to be beligerent. And you are quite
right, we
all make some obvious mistakes from time to time.

I am able to reproduce this problem on a seconf development machine
at my
home office. It seems there is something in my application (some 50
forms)
that is corrupting a reference somewhere. Interestingly, on one other
programmers machine, he can load my application and add a typed
dataset
without error, yet when I load his update, the error reoccurs on my
machine.
So, one machine does not show this error at all, two show it all the
time
and one shows it in my application but not in a new project.

I have seen the same problem reported elsewhere but have not been
able to
see any solutions. Searching the web with either of the error
messages does
produce some results but no answere.

As I mentioned previously, the error occurs even before I assign a
query or
table. While I am sure it is a bug (my other programmers have checked
this
as well), there seems to be no apparent solution.

Perhaps somebody else may have the answer.

Cheers

Found the answer, thanks to a fellow called Todd M. Taylor :

So, I've think that my solution file had something wrong or there was
something in one of my projects that affect the other ones. The only
strange project was that one that had no errors. So I've removed it
and the errors magically disappeared. Adding project again errors
started to appear again.

I've opend my project file with notepad and I've found that System.Xml
reference was written in this way:
<Reference Include="System.Xml, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>

<HintPath>..\..\..\..\..\..\WINDOWS\assembly\GAC_M SIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xm l.dll</HintPath>
</Reference>

I've changed this reference with this:
<Reference Include="System.Xml" />

... and magically everything worked.

Cheers

Cool! Thanks for letting us know.

Robin S.
Jan 4 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sparky | last post: by
4 posts views Thread by Nikolay Petrov | last post: by
reply views Thread by Allen | last post: by
7 posts views Thread by Bob | last post: by
21 posts views Thread by Peter Bradley | last post: by
3 posts views Thread by Peter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.