Can't instantiate COM object from ASP.NET MVC app
问题 As the title says, I want to instantiate a COM object from an ASP.NET MVC app like this: dynamic obj = Activator.CreateInstance(Type.GetTypeFromProgID(progID)); but it throws the following ComException: Retrieving the COM class factory for component with CLSID {16542E4F-4594-4B97-922D-BE9C478F93BB} failed due to the following error: 800aea5f Exception from HRESULT: 0x800AEA5F. The same code works from a Winforms app with the following build configuration: Platform: x86 and Platform target: