?
Solved

.snk files for COM interop: best practices

Posted on 2006-11-29
5
Medium Priority
?
312 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 500 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

765 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