Error after installing dotConnect for Salesforce

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
ccampbell
Posts: 31
Joined: Tue 01 Jun 2010 17:31
Location: Oregon

Error after installing dotConnect for Salesforce

Post by ccampbell » Tue 07 Apr 2020 19:47

Hi there,

I understand that this is the dotConnect for PostgreSQL forum. I currently have dotConnect for PostgreSQL in my project. Recently I downloaded and installed a trial for dotConnect for Salesforce. Afterwards I started Visual Studio (2017) and received two errors.

The 'Devart.Data.PostgreSQL.Vs.PgSqlDataProvidorPackage' Package (5.0.24040.0) did not load correctly.
and the same error for the Devart.data.salesforce package showing a different version (5.0.2375.0).

I understand that they both use the same Devart.Data.dll. I pointed the project to the PostgreSQL one as it is newer.

How do I resolve this conflict?

Thanks,

Chris Campbell

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Error after installing dotConnect for Salesforce

Post by Shalex » Wed 08 Apr 2020 12:03

dotConnect providers use a common assembly (Devart.Data.dll), so it is necessary to install compatible providers versions. We release our ADO.NET data providers in a single pack, thus releases from the same date should be compatible:
* https://www.devart.com/dotconnect/sales ... story.html
* https://www.devart.com/dotconnect/postg ... story.html

Does this information help? If not, reinstall both providers:
1) uninstall dotConnect providers and Entity Developer
2) make sure (via some file manager like https://x-diesel.com/) that there are no Devart.* and policy.*.Devart.* files/folders in the following locations:
* GAC 2.0 (\Windows\assembly\GAC_MSIL\)
* GAC 4.0 (\Windows\Microsoft.NET\assembly\GAC_MSIL\)
3) clear the directories:
* \Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Devart\
* \Program Files (x86)\Devart\
* \Program Files (x86)\Common Files\Devart\
* \Documents and Settings\All Users\Devart\EntityDeveloper\
* \Documents and Settings\All Users\Devart\dotConnect\
4) run installations of dotConnect providers via right-click > Run as administrator

ccampbell
Posts: 31
Joined: Tue 01 Jun 2010 17:31
Location: Oregon

Re: Error after installing dotConnect for Salesforce

Post by ccampbell » Thu 09 Apr 2020 13:58

Thank you.

I was able to find installs that contains the same version of the devart.data.dll component and after running both all is well.

Thank you for your help.

Chris.

Post Reply