Kimmo,
As indicated in other posts, you need to create a strong name using the
SN.EXE utility. However, you can not sign the COM assembly. The compiler
error is being raised because the interop assembly itself is not signed.
Instead of setting a reference to the COM component in your project through
VS.NET, you will have to run TLBIMP.EXE on the DLL that you want to use in
your program. When you run it, you can sign it using the /keyfile switch
(pointing to the output of SN.EXE). Once you have done that, set a
reference to that in your project in VS, and then compile. It should
compile fine.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Kimmo Laine" <reply.to@newsgroup> wrote in message
news:eG**************@TK2MSFTNGP09.phx.gbl...
Hi,
we are using COM server through interop, and would like to sign our
assembly with strong name. But when building, we get the following error: "Assembly
generation failed -- Referenced assembly 'Interop.MyComServer' does not
have a strong name."
How can is sign my COM server with strong name?
thx
Kimmo Laine