Solved

Run MAPI on Windows server 2000

Posted on 2003-11-12
6
357 Views
Last Modified: 2008-02-01
Hi Experts,

I'm trying to run an application that I developed under Win XP on a Windows server 2000 box.

I'm still getting the exception: "COM object with CLSID {3FA7DEB3-6438-101B-ACC1-00AA00423326} is either not valid or not registered" when I do some calls to MAPI.

The application is a service that run under a specific user account (specified in the service logon tab).

I've read somewhere that MAPI won't run without an outlook installation but I found out later that this is false because someone here is running the same code on a server without Office or Exchange. The only difference is the other app is written in VB6, I just took is code and translate it in .NET. And we cannot install Office on the server as this is not recommended by microsoft.

I tried the regasm util to register the Interop.MAPI.dll but it still dont work.

I'll be more than happy if anyone have any good suggestion.

Thanks i advance.
0
Comment
Question by:JeromeCaQcMtl
6 Comments
 
LVL 18

Accepted Solution

by:
testn earned 165 total points
ID: 9737317
0
 
LVL 18

Expert Comment

by:testn
ID: 9737330
.NET doesn't support MAPI+CDO
also read this.....
http://support.microsoft.com/?kbid=813349
0
 
LVL 28

Assisted Solution

by:iboutchkine
iboutchkine earned 165 total points
ID: 9739208
You can run MAPI under .NET.  Add the reference to the COM control. I am using MAPI controls to send email with Eudoea. If you need the code let me know
0
 
LVL 1

Author Comment

by:JeromeCaQcMtl
ID: 9740965
Thank you guys,

I know iboutchkine that it work, it work on my workstation but not on a server without a mail client installed. We made it work here on the same platform but the application was build in VB6. I try to run the same code translated in .NET on another Windows Server 2000.

I found this that I'll first try, we'll reboot the server later to see if it works.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_installing_mapi.asp

If this don't work I'll try the other dll supported by .NET in the link that testn sent.

Thanks
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10267920
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: testn {http:#9737330} & iboutchkine {http:#9739208}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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