This seems to be a hot topic on SO but none of the solutions I've seen work for me.
My web application uses PolarZIP to handle compressing and decompressing XML files that get served to / received from the end user. There is no reference to PolarZIP.dll in my project, nor is there any using statement in the class that does this work, but on our live server the application behaves correctly. Locally, as soon as it tries to instantiate this PolarZIP object I get this exception:
Retrieving the COM class factory for component with CLSID {9A00B901-D104-11D4-B8F7-080030001D26} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
This is the most popular thread I could find:
But setting all of my projects in the solution to build for x86 (instead of 'Any CPU') made things worse-- when I launch the application instead I get this new server error:
Could not load file or assembly 'OurSoftware.Business' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Most other questions citing this error either just get flagged as duplicate for the one I linked above, or don't have any answers at all
I have PolarZIP.ocx in my C:\Windows\SysWOW64\ folder which is where it is on the live server (where the software functions correctly).
Any ideas?
Edit; The CLSID 9A00B901-D104-11D4-B8F7-080030001D26 does show up in regedit if that matters. Name: (Default), Type: REG_SZ, Data: PolarZIP Control