gac + mshtml

  • Thread starter Thread starter Ching-Lung
  • Start date Start date
C

Ching-Lung

Hi,

I am developing a C# win app that has a reference to
MSHTML.dll but I don't want to include
Microsoft.mshtml.dll in my installer because it's too big
(~7.8MB).

So, I am trying to register MSHTML.dll (in SYSTME32) into
GAC. Unfortunately, it keeps complaining: "Failure
adding assembly to the cache: An attempt was made to load
a program with an incorrect format."

What's format does it complain about? Or simply, how do
I register MSHTML.dll into GAC?

Please help, thanks!
-CL
 
First, MSHTML.dll is a COM server dll, you can't register such dll's in the
GAC.
Second, you can't access COM interfaces from managed code without an
interop assembly (or you have to handcode the interfaces in your source code
:-)).


Willy.
 
Oh boy... sounds like I have to include
Microsoft.mshtml.dll into my installer now... *sigh*

Thanks Will,
-CL
 
Back
Top