RobotStudio event

PC SDK - Could not load file or assembly

Just thought I would document a problem that I ran into.  I know John W. has some posts on the 64 bit version issue but this is the error I got:

Running Windows 7, VS2008, 64bit OS.

Message="Could not load file or assembly 'ABB.Robotics.Adapters.IRC5, Version=5.15.2005.2, Culture=neutral, PublicKeyToken=1da709b7d1f14b7b' or one of its dependencies. An attempt was made to load a program with an incorrect format."

You must use the target CPU for 32bit.  To do this in VS2008 do the following:

-Right Click Project  
-Select Compile on left menu
-Scroll to bottom and select "Advanced Compile Options"
-Select Target CPU to be x86

I hope this might help someone in the future

Shane