Solved

.snk files for COM interop: best practices

Posted on 2006-11-29
5
305 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
  • 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# Single Form 8 42
VB.Net - KeyPress Event 4 36
Disable extension 8 38
Write to a printer using vb.net 9 27
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

772 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