Solved

Run MAPI on Windows server 2000

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

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

Suggested Solutions

Title # Comments Views Activity
C# Error - Add Failed 12 78
C# HTTP GET method sample code 3 40
Turn on intranet settings 1 37
Visual Studio TFS - how do I check in my code? 2 28
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
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 …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

19 Experts available now in Live!

Get 1:1 Help Now