hi.
im loading assembly from my computer and createInstance from it.
till now it worked ok.
now, im changing the path from :
c:\myfolder\mya ssembly.dll
to
\\mycomputer\my folder\myasseml y.dll
and i get the next exception when CreateInstance:
-------------
A first chance exception of type 'System.Securit y.SecurityExcep tion'
occurred in mscorlib.dll
Additional information: Request for the permission of type
System.Security .Permissions.Se curityPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9 failed.
--------------
the exception occur when, the code in that assembly is accessed to unmanged
code ( com class).
why is that ? the only diffrence is i change the path like i said from
c:\myfolder\mya ssembly.dll to \\mycomputer\my folder\myasseml y.dll
i try alots of flags and security permissions, but i dont know where to make
the change.
i have feeling is somthing to the evidence parameter in the assembly.load .
hope someone can help
have a nice day.
im loading assembly from my computer and createInstance from it.
till now it worked ok.
now, im changing the path from :
c:\myfolder\mya ssembly.dll
to
\\mycomputer\my folder\myasseml y.dll
and i get the next exception when CreateInstance:
-------------
A first chance exception of type 'System.Securit y.SecurityExcep tion'
occurred in mscorlib.dll
Additional information: Request for the permission of type
System.Security .Permissions.Se curityPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9 failed.
--------------
the exception occur when, the code in that assembly is accessed to unmanged
code ( com class).
why is that ? the only diffrence is i change the path like i said from
c:\myfolder\mya ssembly.dll to \\mycomputer\my folder\myasseml y.dll
i try alots of flags and security permissions, but i dont know where to make
the change.
i have feeling is somthing to the evidence parameter in the assembly.load .
hope someone can help
have a nice day.
Comment