PDA

View Full Version : An exception 'System.Security.SecurityException' has occurred, how do I resolve this?


R. T. (Fortran Man)
03-03-2005, 07:30 PM
When I build the example hello world application, and then attempt to run the resulting exe, I get a message, "An exception 'System.Security.SecurityException' has occurred", how do I resolve this?

I get the same result if I just open a new fortran projects-> .net->windows application, and build and run it without modification. I.E. add no controls, no mods to the code.

Lahey Support
03-03-2005, 07:33 PM
Change the Code Group permission setting to Full Trust.

Via Control Panel -> Administrative Tools -> Microsoft .NET Framework 1.1 Configuration -> Runtime Security Policy -> Machine -> Code Groups -> All_Code, and set the permission to "Full Trust"

After that, the application should run.