Page 1 of 1

The reference "Devart.Data" could not be added to the project.

Posted: Mon 20 Jan 2014 18:01
by rhubka
Hi

Have been LinqConnect for 6 months with no issues. Upgraded to latest Jan 16, 2013 build
Now when I create a new Devart LinqConnect Model, I get this message window on saving.

Code: Select all

The reference "Devart.Data" could not be added to the project.  This wizard will continue to run, but the resulting project may not build properly.
It does not build because I cannot add a using reference in the C# code behind to the new model.

Using VS 2013 on Windows 7 with SQL Server 2008

Any idea's

Re: The reference "Devart.Data" could not be added to the project.

Posted: Tue 21 Jan 2014 08:45
by MariiaI
Probably some old assemblies were not deleted while upgrading LinqConnect.
Please perform the following steps:
- uninstall LinqConnect;
- remove all Devart.* and policy.*.Devart.* assemblies from the GAC;
- clear the Program Files\Devart\dotConnect, Program Files\Devart\Entity Developer and Program Files\Common Files\Devart\dotConnect, Program Files\Common Files\Devart\Entity Developer folders;
- install LinqConnect.

Please tell us if this helps.

Re: The reference "Devart.Data" could not be added to the project.

Posted: Tue 21 Jan 2014 22:03
by rhubka
Thanks
I tried all the steps you suggested and it still did not work. Tried again and even went into the registry to deleted all references to Devart. Still no luck. So I re-installed an older Sept 2013 version and it works fine now.

Re: The reference "Devart.Data" could not be added to the project.

Posted: Wed 22 Jan 2014 15:15
by MariiaI
Please tell us whether you have any other Devart products on your computer (e.g., dotConnect for Oracle). Devart data providers use a common assembly (Devart.Data.dll), so it is necessary to install compatible providers versions (with the same release date).
After re-installation please check that the Devart.Data.dll assembly of the correct version is available in the GAC, e.g. for LinqConnect 4.4.418 it should be Devart.Data.dll 5.0.872.

You can try adding the Devart.Data.dll assembly to your project from the Assemblies->Extensions of the 'Reference Manager' dialog box. Also, Devart assemblies could be found in the 'C:\Program Files (x86)\Common Files\Devart\dotConnect\5.0\Net2\Common' folder.