- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was just wondering if there was a way to add a COM reference(32bit) based dll into a Revit class library. I am able to add the reference, but when the functions get initiated I get the following warning:
Retrieving the COM class factory for component with CLSID {831DA20F-FE64-4A33-B24F-25CEE81939DC} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
I believe this is because Revit uses x64 platform while COM references use x86 platform. I tried switching the platform target to All CPUs and still received this error. If I switch the platform to x86, the Revit button is not recognized. Has anybody found a workaround to this issue?
Solved! Go to Solution.