471,357 Members | 1,130 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

Assembly using COM Interop stubs can't be registered in the GAC

I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]
Jul 21 '05 #1
3 2971
You can sign assemblies with the sn.exe command-line .NET utility.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Angelos Karantzalis" <ak**********@yahoo.com> escribió en el mensaje
news:OZ**************@TK2MSFTNGP10.phx.gbl...
I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name,
which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]

Jul 21 '05 #2
In article <OZ**************@TK2MSFTNGP10.phx.gbl>,
ak**********@yahoo.com says...
I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]


Under VS.Net 2003, open the property pages of the project. In the
General tab there is wrapper key filename. Put there the path to your
keyfile. Then, when you add a reference, the IDE will create a signed
wrapper.

Cheers
Sunny
Jul 21 '05 #3
Sunny, thank you very much for the reply. I would've used the properties
page for ever without ever noticing that :] it worked like a charm, thanks.

Cheers,
Angel
O:]
"Sunny" <su***@newsgroup.nospam> wrote in message
news:O#*************@TK2MSFTNGP15.phx.gbl...
In article <OZ**************@TK2MSFTNGP10.phx.gbl>,
ak**********@yahoo.com says...
I've built an Assembly to wrap around a COM component. However, I need to add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]


Under VS.Net 2003, open the property pages of the project. In the
General tab there is wrapper key filename. Put there the path to your
keyfile. Then, when you add a reference, the IDE will create a signed
wrapper.

Cheers
Sunny

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael Moreno | last post: by
3 posts views Thread by Dustin van de Sande | last post: by
7 posts views Thread by R Reyes | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.