Getting ComPlusExceptionCode -532462766

Apr 12, 2013 at 9:19 AM
Edited Apr 12, 2013 at 9:30 AM
If i am doing this, i am getting ComPlusException
                try 
                {           
                    app = new Outlook.Application();
                    ns = app.GetNamespace("MAPI");
                    ns.Logon(null, null, false, false);

                } catch (Exception ex) {
                        Console.WriteLine(ex.Message);
                }
I have set the references to NetOffice, OfficeAPI and OutlookAPI and embedded Interop-Type for OfficeAPI.
Target framework is .NET Framwork 4

What's wrong with this?
Apr 12, 2013 at 2:53 PM
Edited Apr 12, 2013 at 2:54 PM
In the end i have looked in the examples project and compared with mine, so i've got it done ;)
I have thrown away the try catch block, just to ease readability.