Home > RTC > System.BadImageFormatException on 64 Bit CPU RTC Api

System.BadImageFormatException on 64 Bit CPU RTC Api

July 9th, 2009

If you are using RTC API and and you are installing your bot on 64 BIT CPU, You may get this exception

System.BadImageFormatException: Retrieving the COM class factory for component
with CLSID {7A42EA29-A2B7-40C4-B091-F6F024AA89BE} failed due to the following
error: 800700c1.

This means that you have compiled your code for ANY CPU or 64x cpu and whenever you run your code on 64 bit machine then OS will try to run your application as 64 bit. Bot RTC API is 32 Bit CPU based api, so it will not be supported in 64bit cpu environment.

To solve this issue compile your code for x86 machine(i.e. 32 bit cpu). Now install your application on 64 bit machine. You application should run successfully.

Also verify that in Task Manager 32* is appearing ahead your application name. This will confirm that your application is running in 32 bit environment.

Comments are closed.