Solved

.snk files for COM interop: best practices

Posted on 2006-11-29
5
308 Views
Last Modified: 2006-11-30
Our company makes several assemblies that must be used from COM applications. Should we generate .snk files for each assembly, or is it advisable to sign all of our COM-aware assemblies with a single .snk file?
0
Comment
Question by:k3n51mm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Assisted Solution

by:DEEPESH
DEEPESH earned 125 total points
ID: 18043200
It is advisable to generate snk for each assembly as they will be unique identifier for these objects, and when you register your >net component in registry through regasm, it plays major role in registry.
0
 
LVL 1

Author Comment

by:k3n51mm
ID: 18044818
one of our developers has come up with the idea that we should sign all of our software with the same key. I thought the .snk file was just key that was used to sign a component, and not the componenet's GUID. Can I get more of an explanation?
0
 
LVL 7

Accepted Solution

by:
Joe_Griffith earned 125 total points
ID: 18046122
One snk is all you should ever use. It has nothing to do with registering anything. I read somewhere that Microsoft only has 3 snk's for there entire line of products.
0
 
LVL 1

Author Comment

by:k3n51mm
ID: 18046678
Thanks Joe, can you point me to some documentation for this?
0
 
LVL 7

Expert Comment

by:Joe_Griffith
ID: 18047187
Sorry, no. Have no idea where I read that about MS. I've always used a single SNK. There is another school of thought, however...

The point of the SNK is to insure that your code has not been changed. Some people feel that you should use a separate snk for each assembly so that if one is compromised they won't all be. Seems dumb to me but you should control whatever snk's you create carefully.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question