Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CDO C# problem

Posted on 2006-07-11
2
Medium Priority
?
1,335 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 750 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Simple Linear Regression

963 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