Solved

CDO C# problem

Posted on 2006-07-11
2
1,333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Make the most of your online learning experience.
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 …

622 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