Solved

CDO C# problem

Posted on 2006-07-11
2
1,328 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
ID: 17089192
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
ID: 17089802
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 89
eclipse package explorer vs project explorer view 2 121
Advice in Xamarin 21 78
Office 2016 activiation using KMS 2 25
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

813 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

18 Experts available now in Live!

Get 1:1 Help Now