Just a FYI, I think I found something that will help eliminate the error message. Like you said, it doesn't sound serious and this doesn't quite fit totally, but in principle, it close to the same issue.
Taken from:
http://msdn.microsoft.com/vstudio/express/support/issues/1.3 References to 32-bit COM components may not work in VB and C# Applications running on 64-bit platforms
Most existing COM components are only available for
32-bit platforms and will not run in a 64-bit process on a 64-bit
platform (although they will run correctly in a 32-bit process on a
64-bit platform). VB and C# applications that reference these 32bit COM
components will not run by default on a 64-bit platform because by
default the application will launch as a 64-bit process.
The problem appears when a project with one or more COM references is:
- Migrated to VS 2005 and executed on 64 bit platforms
-or- - Created using VS 2005 on 64 bit platforms
In VS 2005 the VB and C# compilers use the platform
target property to determine if the.exe or .dll should run in 32 bit or
64 bit CPU architecture mode. The default setting for this property in
Visual Studio 2005 is set to 'AnyCPU' which indicates that the
application can run in either 32 and 64 bit mode, depending on the host
platform. In this situation you may see an error such as "Cannot
instantiate class …" when you debug or run these applications.
To resolve this issue
Set the platform target property to 'X86' for your VB or C# projects that have references to COM components.
For C# Projects:
- Right click the project in the solution explorer and open 'properties'
- Choose the Build tab
- Set the Platform Target property to 'X86'
For VB Projects:
- Right click the project in the solution explorer and open 'properties'
- Choose the Compile tab
- Press the Advanced Compile Options… button
- Set the Target CPU property to 'X86'
Express Edition:
The VB and C# Express products to not expose the Target
property inside the development environment. You will need to carefully
modify the project file using a text or XML editor.
- Close the project and/or solution
- Select Open File from the File menu
- Navigate to the project directory, and highlight the project file
- Press the Open button, the project file should open in the XML editor
Locate the first <PropertyGroup> section and add the following line:
<PlatformTarget>x86</PlatformTarget>
- Save the project file
- Reopen the project and/or solution using Open Project/Solution from the File menu
- Continue with development, debugging, and testing
Alternatively, if the application is targeted to 64-bit
platforms, you can ensure that the COM controls added to the
application have 64-bit equivalents on the development and deployment
computers.
I have tried adding the <Platform> tag to my project file in VB Express and it worked for me.
Hope this helps others.
JB