Link to home
Start Free TrialLog in
Avatar of Ikelca
IkelcaFlag for Canada

asked on

how to avoid security exceptions in c# when calling unmanaged dlls

please see attached image
i have this error in some computers, but not others.
how do i fix this??

it's from my program (a little utility programmed with c#), it requires .net framework 2.0 User generated image
ASKER CERTIFIED SOLUTION
Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ikelca

ASKER

actually, im trying to run this little program from network
Avatar of Ikelca

ASKER

i dont understand how come this security exception happens to some machine not all machines.
all the machines are identical.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ikelca

ASKER

no, the machines which had this problem don't have JIT debugger.
but I followed what you guys told me and it seems ok after i put [SuppressUnmanagedCodeSecurity()]
in my code and i tried with .net configuration tool as well, it worked.
thank you all