HighTechTalks DotNet Forums  

Assembly.Load security

Dotnet Security microsoft.public.dotnet.security


Discuss Assembly.Load security in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ales
 
Posts: n/a

Default Assembly.Load security - 03-03-2005 , 03:59 PM






We have an application which load all *.dll from app directories. Is there
some way to say which can be loaded and which not? All will be strong named
and can be digitally signed.

Some of our customers can develop asseblies (dll) and when they put dll into
our app directory our app can load it and use cutomer's functions. But not
all custumers can do that.
It is about licencing of our product.
We now start to using strong named asseblies to hold consistency of our
application I think the right name is dll hell.

How can I refuse loading assemblies using security like strong name or
digital sign of assembly.


Thanks Ales
P.S. sorry for my poor english

Reply With Quote
  #2  
Old   
ales
 
Posts: n/a

Default RE: Assembly.Load security - 03-03-2005 , 04:31 PM






I did search the forum and I found some usefull help, but when I use
Assembly.LoadFrom and then I try to compare PublicToken of loaded assembly
and the test does not pass, the assebly is currently loaded in my
AppDomain.CurrentDomain. Is there some better solution. Or I have to do that
this way?
If I have do it this way, what is better solution compare PublicToken of
assembly or use PublisherMembershipCondition to check Authenticode.
Thank you

"ales" wrote:

Quote:
We have an application which load all *.dll from app directories. Is there
some way to say which can be loaded and which not? All will be strong named
and can be digitally signed.

Some of our customers can develop asseblies (dll) and when they put dll into
our app directory our app can load it and use cutomer's functions. But not
all custumers can do that.
It is about licencing of our product.
We now start to using strong named asseblies to hold consistency of our
application I think the right name is dll hell.

How can I refuse loading assemblies using security like strong name or
digital sign of assembly.


Thanks Ales
P.S. sorry for my poor english

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.