How to sign interops?


B

Boni

Dear all,
I have a bunch of COM objects, which I want to use in the signed assembly.
But at the compile time I have gote a error "XXX is unsigned can't link" (or
something like this). Now I use tlbimp XXX.dll /keyfile:YYY.snk this
generates a file, which I add as a reference to my project.
But now I have a error:
Registering project output for COM Interop...

COM Interop registration failed. Common Language Runtime Internal error:
0x80131163


Is there any ides?
Thanks,
Boni
 
Ad

Advertisements

A

Alan Pretre

Boni said:
I have a bunch of COM objects, which I want to use in the signed assembly.
But at the compile time I have gote a error "XXX is unsigned can't link"
(or something like this). Now I use tlbimp XXX.dll /keyfile:YYY.snk this
generates a file, which I add as a reference to my project.
But now I have a error:
Registering project output for COM Interop...

COM Interop registration failed. Common Language Runtime Internal error:
0x80131163

Are you using VS.NET? If so, go to Project Properties / General / Wrapper
Assembly Key File and specify the name of the file that contains your SN
key. Then under Add References, there is a COM tab where you can select
your COM classes. Add them as references to your project and they should be
usable.

-- Alan
 
Ad

Advertisements

B

Boni

Thanks Alan,

Alan Pretre said:
Are you using VS.NET? If so, go to Project Properties / General / Wrapper
Assembly Key File and specify the name of the file that contains your SN
key. Then under Add References, there is a COM tab where you can select
your COM classes. Add them as references to your project and they should
be usable.

-- Alan
 

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