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

Posted on 2007-10-21
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

    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

    Is the DLL registered on that server?

    LVL 8

    Expert Comment

    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

    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

    Gigs: Get Your Project Delivered by an Expert

    Select from 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.

    Join & Write a Comment

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    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.…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now