Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1336
  • Last Modified:

CDO C# problem

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
RachelCooper
Asked:
RachelCooper
1 Solution
 
talhaaminCommented:
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
 
RachelCooperAuthor Commented:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now