Page 1 of 1

The custom tool 'DevartLinqToSqlGenerator' failed

Posted: Wed 21 Jun 2017 11:51
by yarns
Hi, after upgrading .NET framework from 4.0 to 4.5 im geting error on compilation:
The custom tool 'DevartLinqToSqlGenerator' failed. Object reference not set to an instance of an object.

Reinstaled Devart and it doesnt help. The same error shows when i try open .lqml file with command "Run custom tool". Any tips how to fix it?

Best regards,
Arek

Re: The custom tool 'DevartLinqToSqlGenerator' failed

Posted: Mon 26 Jun 2017 14:13
by Pinturiccio
Please try reinstalling LinqConnect in the following way:
1) uninstall LinqConnect and other Devart products, which can use common assemblies (e.g., dotConnect providers);
2) clear these folders:
- Program Files (x86)\Devart\dotConnect
- Program Files (x86)\Devart\Entity Developer
- Program Files (x86)\Common Files\Devart\dotConnect
- Program Files (x86)\Common Files\Devart\Entity Developer
- Program Files (x86)\Microsoft Visual Studio xx.0\Common7\IDE\PrivateAssemblies\Devart;
3) remove all Devart.* and policy.*.Devart.* files from the GAC:
- C:\Windows\assembly\GAC_MSIL\;
- C:\Windows\Microsoft.NET\assembly\GAC_MSIL
4) install LinqConnect (run installation package as administrator) and other Devart products, if necessary, with compatible versions.

Make sure, that during uninstalling/installing all Visual Studio instances are closed.