Page 1 of 1

Errror VB.ET after upgrading project

Posted: Thu 15 May 2014 11:26
by pm620wh
Hi

I'm upgrading a VB.NET project from VS2008 and VS2010 and I've upgraded the Devart dotConnect tools to 8.3.146.0 and I'm getting the following errors after upgrading the project and trying to run it:

Error 111 Value of type 'System.Data.Linq.Mapping.MappingSource' cannot be converted to 'Devart.Data.Linq.Mapping.MappingSource'. C:\!Odds\UPS\UPS2008\UPS2008\UPS2008\upsDataContext.vb 251 161 UPS2008
Error 13 Type 'Devart.Data.MySql.MySqlDataAdapter' is not defined. C:\!Odds\UPS\UPSSend\UPSFaxmonitor\reportDataset.Designer.vb 13373 57 UPSSend
Error 23 Type 'Devart.Data.MySql.MySqlConnection' is not defined. C:\!Odds\UPS\UPSSend\UPSFaxmonitor\reportDataset.Designer.vb 16503 32 UPSSend
Error 31 Type 'Devart.Data.Linq.Table' is not defined. C:\!Odds\UPS\UPSSend\UPSFaxmonitor\upsDataContext.vb 275 42 UPSSend
Error 30 Type 'Devart.Data.Linq.Mapping.AttributeMappingSource' is not defined. C:\!Odds\UPS\UPSSend\UPSFaxmonitor\upsDataContext.vb 27 80 UPSSend
Error 29 Type 'Devart.Data.Linq.DataContext' is not defined. C:\!Odds\UPS\UPSSend\UPSFaxmonitor\upsDataContext.vb 25 12 UPSSend
Error 32 'GetTable' is not a member of 'UPSSend.upsDataContext.upsDataContext'. C:\!Odds\UPS\UPSSend\UPSFaxmonitor\upsDataContext.vb 277 12 UPSSend

I have ensured the same references are in the project as before.

Can you help me understand what is wrong please?

Kind regards

Paul

Re: Errror VB.ET after upgrading project

Posted: Thu 15 May 2014 13:09
by MariiaI
We have made a major refactoring of the LinqConnect engine since version 4.0 (dotConnect for MySQL 7.0.6 released on 22-May-12): http://www.devart.com/dotconnect/mysql/ ... story.html.
Since this version, the references to System.Data.Linq are removed, LinqConnect uses only its own classes. So, it is necessary to replace all occurrences of "System.Data.Linq." with "Devart.Data.Linq.". Please check that your code (*.Designer.vb file) doesn't contain "System.Data.Linq." and there is no reference to the System.Data.Linq assembly.
Please also check that your project references new versions of the Devart assemblies.

Please tell us if this helps.