3 messages in com.googlegroups.google-desktop-developerGoogle Team Help! COM Interop Registr...
FromSent OnAttachments
theidealist21 Nov 2005 18:49 
taualex22 Nov 2005 06:57 
Jamie Bliss22 Nov 2005 07:31 
Subject:Google Team Help! COM Interop Registration Failure! (Repost)
From:theidealist (mcmi@gmail.com)
Date:11/21/2005 06:49:11 PM
List:com.googlegroups.google-desktop-developer

Hello again,

This is mainly just a repost, to see if anyone can help me.

I am new to COM, and somewhat new to C#, but I've got my (C#, Display) plugin going based off the C# sample in the SDK. It builds fine -- no errors -- if I build it with the project setting (under the Build tab) "Register for COM Interop" set to false. If I set it to true, the build fails with the following error:

"COM Interop registration failed. Type library exporter encountered an error while processing 'MyPluginNamespace.MyPluginContentItem, MyPluginNamespace'. Error: Referenced type is defined in managed component, which is imported from a type library that could not be loaded (type: GoogleDesktopDisplayLib.IGoogleDesktopDisplayContentItemHelper; component: c:\documents and settings\<my user name>\local settings\application data\assembly\dl2\x512zhr1.qtd\6eg118ny.vtc\93b9aaca\004aecaf_80e5c501\interop.googledesktopdisplaylib.dll)"

The MS help page on this error seems to think it can only happen if I'm out of disk space or don't have permissions. Well, I'm an administrator on this machine, and it's certainly not out of disk space.

Remembering some difficulties getting the sample to compile in the beginning, however, I re-registered the .tlb generated by the GoogleDesktopComponentCommon project and it registered without any problems (making sure to register it with an absolute path, too). This is not the problem.

The really weird thing here is that I can't even get the sample to compile anymore - it fails with the same error as my plugin. I don't THINK I changed anything in it, but I guess I could've over the last few months, unintentionally.

Is registering something for COM interop what happens at install time? Should I just let the new wix toolkit installer handle the install?

When I researched this more in depth, I came across a web site that recommended I use the "depends" application that's shipped with VS .NET to see what my built dll depends on. When I open it with depends.exe I am told that "At least one module has an unresolved import due to a missing export function in a delay-load dependent module." -- which I'm guessing is the equivalent error of when it says it can't find "interop.googledesktopdisplaylib.dll" after the build process.

Also, there were some other errors/solutions posted elsewhere that said this problem could be related to an improperly handled/configured GAC (Global Assembly Cache) in the .NET runtime, but I have no idea how to fix that, or how it might have gotten broken in the first place - since, as I mentioned I used to be able to compile the CSharp sample no problem.

ANY help or pointers at all with this error would be greatly appreciated.

Thanks!

-Patrick