Solved

Run MAPI on Windows server 2000

Posted on 2003-11-12
6
358 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
[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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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