views:

28

answers:

0

Hi,

I'm trying to interop iTunesLib 10 with Visual Studio 2010 on Windows7 x64. I have some sample code for interoping with the iTunesLib, but when I try to run it, it says:

Could not load file or assembly 'Interop.iTunesLib, Version=1.13.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I've downloaded the x64 version of iTunes, but the iTunes.exe process is marked as *32 in Task Manager, however the iPodService.exe is listed as iPodService Module (64bit).

I've tried to change my project's build options from all cpu to x64, but it didn't help either.

Any suggestions?

Thanks!