Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

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

0.00/5 (No votes)
27 Jun 2013 1  
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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here