while compling my code I got the following error message:
An unhandled exception of type 'System.Security.SecurityException' occurred in System.dll
To make it more clear I attached screenshot. Could you please have a look and explain me why it doesn't work.