Cannot create CipherSafe.NET COM object from a 32-bit app running on a 64-bit system

Create issue
Issue #2 new
obviex repo owner created an issue

When a 32-bit application running on a 64-bit OS attempts to instantiate the CipherSafe.NET COM server, it errors out.

Comments (1)

  1. obviex reporter

    Although the CipherSafe.NET assemblies are platform-independent (compiled for AnyCPU) installer only registers the COM server in the 64-bit subsystem. This will be fixed in a future release, but in the meantime, use the following workaround (NOTE: this issue only applies to 64-bit systems, and only affects 32-bit apps):

    • Open the 32-bit command-prompt (CMD.EXE located in the %WINDIR%\SysWOW64 folder) as an Administrator.
    • From the command prompt, register the CipherSafeCOM.dll located in GAC using the 32-bit version of the REGASM.EXE tool using the following command (make sure the .NET Framework folder is called Framework, and not Framework64): "%WINDIR%\Microsoft.NET\Framework\v2.0.50727\regasm.exe" "<path_to>CipherSafeCOM.dll" /codebase

    You can find the CipherSafeCOM.dll under a versioned subfolder (e.g. beneath %WINDIR%\assembly\GAC_MSIL\CipherSafeCOM.

  2. Log in to comment