Click here to Skip to main content
11,432,427 members (67,897 online)
Click here to Skip to main content

Tagged as

Retrieving the COM Class Factory for Component with CLSID Failed due to the following error: 8007007e

, 27 Jun 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
Retrieving the COM class factory for component with CLSID

Introduction

This tip shows how COM class factory registration problem is solved because mostly developers face this problem when using third party DLLs in their applications.

Background

When we use third party DLLs, sometimes we get an error message:

" Err: Error In retrieving Location Code. Retrieving the COM class factory 
for component with CLSID {7BDE052E-41BA-11D8-8FEA-444553540000} 
failed due to the following error: 8007007e "  

For that, check the following:

  1. Give the right of your application folder (every one, IIS Process account, aspnet, etc.)
  2. Remove your previous reference of your DLL and add reference again in your application.
  3. Check path C:\WINDOWS\system32 to see if your DLL is present or not. If not, then copy paste your DLL.
  4. Run the following command from Start-RUN or command prompt.
    Reg serv32    C:\Windows\System32\yourDLLName.dll 

    For confirmation, check your DLL registry, run command "regedit".

    After opening Registry Editor window, check path:

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
    {7BDE052E-41BA-11D8-8FEA-444553540000} ( As per our example of above error message key name )
     \InprocServer32   

    and under InprocServer32, check (Default) key data is C:\Windows\System32\yourDLLName.dll.

    If not, then modify value of data C:\Windows\System32\yourDLLName.dll.

  5. Restart IIS and test your application now.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

sanjay30
Software Developer (Senior)
India India
No Biography provided

Comments and Discussions

 
SuggestionThe DLL doesn't need to be in C:\Windows\System32 Pin
mcmathys0428-Jun-13 10:39
membermcmathys0428-Jun-13 10:39 
Suggestionsyntax error Pin
Manuele Camilletti27-Jun-13 22:43
memberManuele Camilletti27-Jun-13 22:43 
GeneralRe: syntax error Pin
sanjay3027-Jun-13 23:28
membersanjay3027-Jun-13 23:28 
Questionand here's what the error code means Pin
SteveKing27-Jun-13 21:50
memberSteveKing27-Jun-13 21:50 
AnswerRe: and here's what the error code means Pin
sanjay3027-Jun-13 22:09
membersanjay3027-Jun-13 22:09 
GeneralRe: and here's what the error code means Pin
SteveKing28-Jun-13 4:00
memberSteveKing28-Jun-13 4:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150428.2 | Last Updated 27 Jun 2013
Article Copyright 2013 by sanjay30
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid