Sage 50 SDK: COM throwing errors on Login

I am trying to connect to an instance of Sage 50 Accounting 2015 via COM. However when the initial login object tries to construct I get the following error:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

Additional information: Retrieving the COM class factory for component with CLSID {80756B13-9640-4B06-9B34-DB67598A253D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Open in new window

The program is being built on a 32 bit machine as an 86 piece of software, it is being ran under administrative access. This does not appear to be a specific Sage 50 SDK issue, this appears to be more of a COM issue. I am using C#. The client program is 2015 and the SDK is 2015 (not 2015.1, .2, or .3)
Brandon GarnettAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Karrtik IyerSoftware ArchitectCommented:
The COM class that you are trying to create is not registered in registry. Every COM DLL is either registered for a entry to be created in registry so the clients can create the COM objects , or the COM class's UUID details are added to the manifest of the client exe to use it without registration.
If the COM class you are trying to create is from the SDK which you have installed, I would suggest you find out if SDK has been properly installed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brandon GarnettAuthor Commented:
Karrtik Iyer Certainly did lead me to the solution. I was using the .dll file that was included with the SDK. Instead, I added a reference in Visual Studio. I went to COM > "Peachtree Accounting 22.0 Type Library"

This was nearly the exact same thing as the included .DLL except it was installed correctly.
Karrtik IyerSoftware ArchitectCommented:
Thanks rcimasi, I'm glad that I was of some help. Any particular reason you have graded this as C and not even B? I understand that my answer only helped you think in that direction, and was not the exact solution. Hence you didn't grade it as A.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.