The custom tool 'DevartLinqToSqlGenerator' failed

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
yarns
Posts: 1
Joined: Wed 21 Jun 2017 11:46

The custom tool 'DevartLinqToSqlGenerator' failed

Post by yarns » Wed 21 Jun 2017 11:51

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

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: The custom tool 'DevartLinqToSqlGenerator' failed

Post by Pinturiccio » Mon 26 Jun 2017 14:13

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.

Post Reply