Tuesday, August 23, 2022

Resolving "Retrieving the COM class factory for component with CLSID ..." error message in IIS.

Problem Statement

On attempting to access  or performing any operation on a web application that is hosted on IIS, you may get the following error:-

Retrieving the COM class factory for component  with CLSID {....

Resolution

While there could be couple of reasons why this can occur, the most likely cause is due to lack of folder permission for the IIS_IUSR group for the folder that has the application code.

The base folder that contains the application code needs to have access for the IIS_IUSR group.
 
Once the folder is provided access as follows, the issue should be resolved:-