Exception: System.Security.SecurityException when using new MAPI.Session()

  • Thread starter Thread starter John Giblin
  • Start date Start date
J

John Giblin

After reading "HOWTO: Use CDO 1.1 to Send an E-mail Message
Programmatically with Visual C"
http://support.microsoft.com/?id=310181
I tried this example and I continue to get an error:

Unhandled Exception: System.Security.SecurityException:
System.Security.Permissions.SecurityPermission
at Cdo121.Class1.Main(String[] args) in h:\visual studio
projects\consoleapplication1\class1.cs:line 18

The state of the failed permission was:
<IPermission class="System.Security.Permissions.SecurityPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral, Publi
cKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>

Does anyone know what this is?
 
Back
Top