HighTechTalks DotNet Forums  

Re: Dynamic invocation of Secure Assembly

Dotnet Security microsoft.public.dotnet.security


Discuss Re: Dynamic invocation of Secure Assembly in the Dotnet Security forum.



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

Default Re: Dynamic invocation of Secure Assembly - 06-20-2004 , 02:27 PM






gproano (AT) online (DOT) microsoft.com (Guillermo Proano [MS]) wrote in message news:<iMxnzKlTEHA.308 (AT) cpmsftngxa10 (DOT) phx.gbl>...
Quote:
Because Assembly1 is signed, it will need the APTCA attribute to allow
Assembly2 to call into it.

Guillermo Proano
SDE/T - Common Language Runtime
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
I have put the following attributes ....
in assembly 1 the folowing code secures the method ....
<StrongNameIdentityPermissionAttribute(SecurityAct ion.LinkDemand,
PublicKey:="002400000480000.........")> _
Public Function MethodName(ByVal Param As String) As String


in assembly 2 -
the dynamic invocation goes as follows :
result = CType(Type.InvokeMember(methodName, BindingFlags.Default Or
BindingFlags.InvokeMethod, Nothing,objCls, args), [String])

and i have public key attached in assembly info file in the following
manner :
<Assembly: AssemblyKeyFile("Wkey.snk")>

I hope this time i am able to clarify the problem in better way.
Kindly let me know for any breakthru ...
indeed it works perfect if i don't invoke dynamically and just
reference assembly1 in assembly2.

I want to know the process how the dynamic invokation internally takes
place and also is there any way to present the key dynamically to
assembly1 demand ??

thanks for the help.


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.