Retrieving the COM class factory for component with CLSID {} failed due to the following error: 8007007e.

Posted on 2007-10-21
Medium Priority
Last Modified: 2013-11-25
I have an ASP.NET application (C#). I am trying to execute a DTS package from the code using the following code:
Package2Class package = new Package2Class();
                    "DTS pkg to execute",
                    ref pVarPersistStgOfHost);

When my code tries to execute the line: Package2Class package = new Package2Class();
It fails and returns the error message:
Retrieving the COM class factory for component with CLSID {10020202-EB1C-11CF-AE6E-00AA004A34D5} failed due to the following error: 8007007e.

My application runs fine on my local machine but when I publish it to the test and production server it fails with the above message.
I really need to get this sorted but am not too sure where to start looking. Any help on resolving this issue would be great.
Thanks in advance for any advice.
Question by:TVanNiekerk
LVL 22

Accepted Solution

RedKelvin earned 750 total points
ID: 20119847
That error means that the module that you were trying to get the ID of cannot be found. Is the product installed on the server?. If it is, it may be worth doing a repair or remove/reinstall of that software
LVL 22

Assisted Solution

JimBrandley earned 750 total points
ID: 20119848
Is the DLL registered on that server?


Expert Comment

ID: 20119973
I would check the SQL server version on the server and make sure that they are the same. Assuming they are the same version as suggested in previous replies reinstalling should fix it.

You can also check the registry for the clsid 10020202-EB1C-11CF-AE6E-00AA004A34D5 under HKEY_CLASSES_ROOT\CLSID in the registry to make sure it has an entry (on the server with problems).  Reinstalling should fix it if it is missing.

Author Comment

ID: 20119979
I have just gone to the server and looked in the registry. The Dlls seemed to be registered. However,  the location they were pointing for the dlls didn't seem to exist. I placed the dll's in the file location that was specified in the registry and it didn't come up with the error anymore.
Makes sense now - why the module couldn't be found!
Thanks so much for getting back to me so promptly.
Have a great day.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Loops Section Overview

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question