"System.Security.SecurityException was unhandled" error appears during creation of CDO.Message object. CDO.Message msgTemp = new CDO.MessageClass(); The error above happens when I tried to run windows forms application from the network drive (default VS projects locations). This was solved only by moving whole project to the my local drive.
ASP.NET tips, problems and solutions discovered during development