PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins strong name and Redemption

Reply

strong name and Redemption

 
Thread Tools Rate Thread
Old 03-04-2006, 02:00 PM   #1
Rog
Guest
 
Posts: n/a
Default strong name and Redemption


I am trying to sign my C# Outlook Add-in. Is it wise to do ?
Necessary?
When I do this and compile I get an error: Interop.Redemption does not
have a strong name..
Any ideas on how to fix this?
Thanks
  Reply With Quote
Old 03-04-2006, 04:51 PM   #2
Dave Kane [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: strong name and Redemption

It's good to assign strong names to your assemblies, but a strong-named
assembly can't reference any assembly with a simple name which is why you
are getting that compile error. You will need to use Assembly Linker
(al.exe) to give your Redemption interop assembly a strong name by signing
it with your keyfile
http://msdn2.microsoft.com/en-us/library/xc31ft41(VS.80).aspx

"Rog" <rog_21@yahoo.com> wrote in message
news:%23jVUv6xVGHA.4300@TK2MSFTNGP14.phx.gbl...
>I am trying to sign my C# Outlook Add-in. Is it wise to do ?
> Necessary?
> When I do this and compile I get an error: Interop.Redemption does not
> have a strong name..
> Any ideas on how to fix this?
> Thanks



  Reply With Quote
Old 03-04-2006, 04:53 PM   #3
Rog
Guest
 
Posts: n/a
Default Re: strong name and Redemption

Would you potentially have any issues if you do not use a strong name?
Would it help my .net 1.1 addin to work in .net 2.0?
Rog

Dave Kane [MVP - Outlook] wrote:
> It's good to assign strong names to your assemblies, but a strong-named
> assembly can't reference any assembly with a simple name which is why you
> are getting that compile error. You will need to use Assembly Linker
> (al.exe) to give your Redemption interop assembly a strong name by signing
> it with your keyfile
> http://msdn2.microsoft.com/en-us/library/xc31ft41(VS.80).aspx
>
> "Rog" <rog_21@yahoo.com> wrote in message
> news:%23jVUv6xVGHA.4300@TK2MSFTNGP14.phx.gbl...
>> I am trying to sign my C# Outlook Add-in. Is it wise to do ?
>> Necessary?
>> When I do this and compile I get an error: Interop.Redemption does not
>> have a strong name..
>> Any ideas on how to fix this?
>> Thanks

>
>

  Reply With Quote
Old 05-04-2006, 05:03 PM   #4
Dave Kane [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: strong name and Redemption

I can't give you a definitive answer about issues you might run into if your
assembly doesn't have a strong name. Outlook's own security model doesn't
know anything about strong names, so it's not relevant there. But in terms
of .NET Framework security an assembly must have a strong name to be
explicitly granted trust. So in answer to your second question: depending on
how the target environment is configured the lack of a strong name could be
a show stopper.

BTW, if you are going to elevate the potential level of trust for your
Redemption interop assembly then as a good citizen you should make it more
secure by fully customizing it with modified class name and GUIDs
http://www.dimastr.com/redemption/security.htm
And an alternative way to give it a strong name is to generate the interop
assembly using tlbimp.exe which accepts a /keyfile option
http://msdn.microsoft.com/library/d...erTlbimpexe.asp

"Rog" <rog_21@yahoo.com> wrote in message
news:u$AGebzVGHA.2444@TK2MSFTNGP14.phx.gbl...
> Would you potentially have any issues if you do not use a strong name?
> Would it help my .net 1.1 addin to work in .net 2.0?
> Rog
>
> Dave Kane [MVP - Outlook] wrote:
>> It's good to assign strong names to your assemblies, but a strong-named
>> assembly can't reference any assembly with a simple name which is why you
>> are getting that compile error. You will need to use Assembly Linker
>> (al.exe) to give your Redemption interop assembly a strong name by
>> signing it with your keyfile
>> http://msdn2.microsoft.com/en-us/library/xc31ft41(VS.80).aspx
>>
>> "Rog" <rog_21@yahoo.com> wrote in message
>> news:%23jVUv6xVGHA.4300@TK2MSFTNGP14.phx.gbl...
>>> I am trying to sign my C# Outlook Add-in. Is it wise to do ?
>>> Necessary?
>>> When I do this and compile I get an error: Interop.Redemption does not
>>> have a strong name..
>>> Any ideas on how to fix this?
>>> Thanks

>>


  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off