Click here to Skip to main content
15,886,518 members
Articles / Programming Languages / Forth.NET
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
3.67/5 (3 votes)
27 Jun 2013CPOL 128.1K   3   6
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)


Written By
Software Developer (Senior)
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
SuggestionThe DLL doesn't need to be in C:\Windows\System32 Pin
mcmathys0428-Jun-13 9:39
mcmathys0428-Jun-13 9:39 
Suggestionsyntax error Pin
Manuele Camilletti27-Jun-13 21:43
professionalManuele Camilletti27-Jun-13 21:43 
Reg serv32 C:\Windows\System32\yourDLLName.dll

should be
Regsvr32 C:\Windows\System32\yourDLLName.dll

GeneralRe: syntax error Pin
sanjay3027-Jun-13 22:28
sanjay3027-Jun-13 22:28 
Questionand here's what the error code means Pin
SteveKing27-Jun-13 20:50
SteveKing27-Jun-13 20:50 
AnswerRe: and here's what the error code means Pin
sanjay3027-Jun-13 21:09
sanjay3027-Jun-13 21:09 
GeneralRe: and here's what the error code means Pin
SteveKing28-Jun-13 3:00
SteveKing28-Jun-13 3:00 

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

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