1
Vote

Access denied while trying to use the Gnu.Getopt DLL

description

I have referenced the Gnu.Getopt dll in a c# console application. I manage to create an array of longopts and build the solution (which means the DLL reference is correct. However when i execute the application i got the following error:

 

Unhandled Exception: System.IO.FileLoadException: 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) File name: 'Gnu.Getopt, Version=0.9.1.24287, Culture=neutral, PublicKeyToken=d014b4ccdc53511a' ---> System.Security.Policy.PolicyException: Execution permission cannot be acquired.

 

 
Any suggestion will be appreciated.

comments

muhammedh wrote May 7, 2009 at 2:06 PM

Sorry this should have been a discussion item. please ignore this post. Thanks.

wrote Feb 14, 2013 at 1:54 AM