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:
- Give the right of your application folder (every one, IIS Process account, aspnet, etc.)
- Remove your previous reference of your DLL and add reference again in your application.
- Check path C:\WINDOWS\system32 to see if your DLL is present or not. If not, then copy paste your DLL.
- 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.
- Restart IIS and test your application now.