65.9K
CodeProject is changing. Read more.
Home

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

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.67/5 (3 votes)

Jun 27, 2013

CPOL
viewsIcon

129487

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.