Use DLL and have it be as trusted as my own application is

Posted by Binary255 on Stack Overflow See other posts from Stack Overflow or by Binary255
Published on 2010-04-14T18:00:08Z Indexed on 2010/04/14 18:03 UTC
Read the original article Hit count: 323

Filed under:
|
|

Hi,

I am using a port of GNU GetOpts, to be specific I am using the one at: http://getopt.codeplex.com

I have added the DLL as a reference. But when I run my application I receive an exception:

System.IO.FileLoadException was unhandled
  Message="Could not load file or assembly 'Gnu.Getopt, Version=0.9.1.24287,
  Culture=neutral, PublicKeyToken=d014b4ccdc53511a' or one of its dependencies.
  Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)"

If it is possible I would like my application to say, "trust this DLL as much as you trust me". Is there a way to do that so I won't have to fiddle with security settings?

And if there is not. What is the cleanest way to get the DLL working?

© Stack Overflow or respective owner

Related posts about c#

Related posts about security