Could not load file or assembly 'Sage.Peachtree.Domain, Version=2015.2.0.196' ...

SOLVED

Hi,

I have a machine that was just reinstalled Sage50 2015, when I try to access it from my app I get this error:

Message: Could not load file or assembly 'Sage.Peachtree.Domain, Version=2015.2.0.196, Culture=neutral, PublicKeyToken=d06c16dde04d83e4' or one of its dependencies. The system cannot find the file specified.
Exception type: System.IO.FileNotFoundException

I checked and the version I found of that dll in the sage50 API folder (C:\Program Files (x86)\Sage\Peachtree) is 2015.0.0.106 which is the same version of the API dll

In short, I have these dlls ALL with the same version (2015.0.0.106)

Sage.Peachtree.Domain.dll

Sage.Peachtree.API.dll

I opened Sage.Peachtree.API.dll with dotPeek and it also makes reference to .106

Who, where is making reference to the other version? 2015.2.0.196

The version of Sage50 is:

Release: Sage 50 Distribution Accounting 2015
Build: 22.2.00.0196 

Thanks,

Ignacio

Parents
  • +1
    verified answer

    Hello Ignacio, this version of Sage 50 US is now retired and no longer supported. The currently supported version is 2020.2. However, I can suggest this: make sure that you are logged in as Windows Administrator and have full control on the Sage 50 US runtime folder. Keep UAC disabled if possible. Also, do not use Reference.CopyLocal=True setting in your Visual Studio project. Reference the DLL directly from the Sage 50 runtime folder.

Reply
  • +1
    verified answer

    Hello Ignacio, this version of Sage 50 US is now retired and no longer supported. The currently supported version is 2020.2. However, I can suggest this: make sure that you are logged in as Windows Administrator and have full control on the Sage 50 US runtime folder. Keep UAC disabled if possible. Also, do not use Reference.CopyLocal=True setting in your Visual Studio project. Reference the DLL directly from the Sage 50 runtime folder.

Children