Solved

Run MAPI on Windows server 2000

Posted on 2003-11-12
6
354 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
Comment Utility
0
 
LVL 18

Expert Comment

by:testn
Comment Utility
.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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

6 Experts available now in Live!

Get 1:1 Help Now