PC Review


Reply
Thread Tools Rate Thread

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

 
 
Angelos Karantzalis
Guest
Posts: n/a
 
      24th Feb 2005
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:]


 
Reply With Quote
 
 
 
 
Carlos J. Quintero [.NET MVP]
Guest
Posts: n/a
 
      24th Feb 2005
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" <(E-Mail Removed)> escribió en el mensaje
news:(E-Mail Removed)...
> 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:]
>
>



 
Reply With Quote
 
Sunny
Guest
Posts: n/a
 
      24th Feb 2005
In article <(E-Mail Removed)>,
(E-Mail Removed) 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
 
Reply With Quote
 
Angelos Karantzalis
Guest
Posts: n/a
 
      24th Feb 2005
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" <(E-Mail Removed)> wrote in message
news:O#(E-Mail Removed)...
> In article <(E-Mail Removed)>,
> (E-Mail Removed) 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly manifest Interop.X.dll does not match assembly reference =?Utf-8?B?TGFkeV9B?= Microsoft Dot NET 0 15th Dec 2005 01:25 AM
Namespace conflict between stubs and the real implementations of the stubs linkan56@hotmail.com Microsoft Dot NET 0 2nd Dec 2005 01:03 PM
Assembly using COM Interop stubs can't be registered in the GAC Angelos Karantzalis Microsoft Dot NET 3 24th Feb 2005 05:56 PM
RE: Installing Assembly registered for COM interop =?Utf-8?B?QWFyb24=?= Microsoft Dot NET Framework 0 4th Aug 2004 08:05 PM
Assembly generation failed -- Referenced assembly 'Interop.SHDocVw' does not have a strong name jm Microsoft C# .NET 0 26th May 2004 10:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:23 PM.