gac + mshtml

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
 
W

Willy Denoyette [MVP]

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.
 
C

Ching-Lung

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

Thanks Will,
-CL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top