Home All Groups Group Topic Archive Search About

Cannot create DataRelation 2005

Author
20 Oct 2006 3:17 PM
moWhite
I have some code in a VB.NET 2003 assembly that creates two DataTables and a
DataRelation between them.  Neither table is specifically added to a DataSet.
This runs fine in other VB.NET 2003 projects.

When I add this assembly to a VB.NET 2005 project, it dies when this code is
executed, complaining that neither column is in a DataSet.

Did something change with respect to DataRelations in .NET Framework 2.0? 
Why isn't the VB.NET 2003 assembly executing using .NET Framework 1.1?

Thanks, Richard

Author
20 Oct 2006 4:24 PM
Cor Ligthert [MVP]
MoWhite,

Can it be that you forgot to show the relation code to us?

I am not aware from any changes.

Cor


Show quote
"moWhite" <moWh***@discussions.microsoft.com> schreef in bericht
news:3CD32F08-D0AB-4BD7-8D7D-FC08A3B542DB@microsoft.com...
>I have some code in a VB.NET 2003 assembly that creates two DataTables and
>a
> DataRelation between them.  Neither table is specifically added to a
> DataSet.
> This runs fine in other VB.NET 2003 projects.
>
> When I add this assembly to a VB.NET 2005 project, it dies when this code
> is
> executed, complaining that neither column is in a DataSet.
>
> Did something change with respect to DataRelations in .NET Framework 2.0?
> Why isn't the VB.NET 2003 assembly executing using .NET Framework 1.1?
>
> Thanks, Richard
>
Author
23 Oct 2006 2:29 PM
W.G. Ryan [MVP]
What exception is it throwing?  Is there a possible difference in data?
Show quote
"moWhite" <moWh***@discussions.microsoft.com> wrote in message
news:3CD32F08-D0AB-4BD7-8D7D-FC08A3B542DB@microsoft.com...
>I have some code in a VB.NET 2003 assembly that creates two DataTables and
>a
> DataRelation between them.  Neither table is specifically added to a
> DataSet.
> This runs fine in other VB.NET 2003 projects.
>
> When I add this assembly to a VB.NET 2005 project, it dies when this code
> is
> executed, complaining that neither column is in a DataSet.
>
> Did something change with respect to DataRelations in .NET Framework 2.0?
> Why isn't the VB.NET 2003 assembly executing using .NET Framework 1.1?
>
> Thanks, Richard
>

AddThis Social Bookmark Button