Re: Strong Namining An Assembly

Jeff <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <01e301c713ff$5486d820$0101a8c0@wks2>
This is what I was looking for. I will check it out.

-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:[email protected]] On Behalf Of Dean Cleaver
Sent: Wednesday, November 29, 2006 1:57 PM
To: [email protected]
Subject: Re: [DOTNET-WEB] Strong Namining An Assembly

Look up StrongNameIdentityPermission I think. Or at least poke around in
System.Security.Permissions - basically I believe you can flag methods
(or entire classes - I am not sure) that they can only be called by
assemblies signed with a given key. I have used something similar to
ensure that a certain method could only be overridden if the inheriting
assembly was signed with my key.

HTH
Dino

-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:[email protected]] On Behalf Of Jeff
Sent: Thursday, 30 November 2006 09:49
To: [email protected]
Subject: [DOTNET-WEB] Strong Namining An Assembly

Can anyone please tell me if strong naming an assembly will force it to
only be used by apps that have the client snk key? I have a .net 1.1 app
and some separate 1.1 assemblies that I will give out to people. I want
to make sure that they can not write their own app and use the
assemblies.  It seems that if I strong name it, this will prevent people
from writing their own apps and calling my assembly/methods.  I
understand that doing this will also allow my main app to know if my
assemblies have been tampered, but my other concern is other people
using my assemblies.



Advice appreciated.  Thank You.








===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.