Solidworks Document Manager API issue while hosting inside IIS

Hello Team,

I want to test SW DM API for 2020 and for that I have created one WebAPI in C#. Only one Get method to check whether it is working or not. While running in visual studio (localhost) it is working fine. But when I have hosted the same application in same server IIS then it throws bellow issue.

Error Details - Retrieving the COM class factory for component with CLSID {00AB5D8D-2B8F-416B-9761-92FACC8872BE} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Reason of testing WebAPI : I have one windows service constantly failing after system gets idle. So we want to change SW API to SW DM API. Once WebAPI hosted sucessfully then we can migrate windows service to WebAPI with DM API.