Solved

CDO C# problem

Posted on 2006-07-11
2
1,323 Views
Last Modified: 2012-05-05
The following piece of code is causing me problems:

        // create a session then log on, supplying profile
        mobjSession = new MAPI.Session();
        mobjSession.Logon(objProfileName, objEmpty, objEmpty, objEmpty, objEmpty, objEmpty, objEmpty);
       
As soon as execution hits the 'mobjSession = new MAPI.Session();' line, it jumps to the catch block with the following error:

Retrieving the COM class factory for component with CLSID {3FA7DEB3-6438-101B-ACC1-00AA00423326} failed due to the following error: 80010106.

I found another similar question on this site, with replies telling questioner to ensure they had all microsoft office components installed, in particular the Collaboration Data Objects component. I have done this (with office pro 2003), and it has not helped.

mobjSession is defined at the top of the module like so:

        public static MAPI.Session mobjSession;

Any help would be much appreciated.
0
Comment
Question by:RachelCooper
2 Comments
 
LVL 2

Accepted Solution

by:
talhaamin earned 250 total points
Comment Utility
This error produces when the sender address is not a valid email address and please verify that IIS SMTP service is running or not
0
 

Author Comment

by:RachelCooper
Comment Utility
Thanks, it was because the email address was invalid. For future reference, how do I verify that IIS SMTP service is running?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will show, step by step, how to integrate R code into a R Sweave document
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now