I am trying to create a mailbox
in Exchange server 2013 using C#
Using this Reference I created a console application to create a mail box.
Initially I created Active Directory
, using the credintials I tried to create mail box. but the below statment throws exception
Runspace runspace = RunspaceFactory.CreateRunspace(connectionInfo);
throws exception
A first chance exception of type 'System.InvalidProgramException' occurred in Exchange.exe
Additional information: Common Language Runtime detected an invalid program.