diff --git a/Client/Program.cs b/Client/Program.cs index 48d1e82b..b53c59c8 100644 --- a/Client/Program.cs +++ b/Client/Program.cs @@ -25,14 +25,13 @@ namespace Active_Client /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #region MAIN_METHOD - [STAThread] + [STAThread] + [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlAppDomain)] static void Main(string[] args) { //Crate General Exception Handler AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(GeneralExMethod); - - //Crate General Exception Handler - AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(GeneralExMethod); + //Read App Configuration readConfiguration();