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.