@Rayky: You might want to give a link to where you found the solution for your problem if someone in the future comes around this page via a search for System.Security.SecurityException they would leave empty handed.

@Bob: Thank you for an excellent series on C#. Just finished your beginner's series and though I'm unfamiliar with programming it gave a good insight to the language and I'm going to see through this series also.