• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

MAPI Programming, ConfigureMsgService causes hang

This question concerns the use of MAPI programming to connect to a Microsoft
Exchange 2007 server.

Can anybody think of a reason that ConfigureMsgService would cause a hang?  We have
an application that creates multiple processes in the context of a service account
that has all permissions to the server.  The process goes through creating a temporary
profile and configuring it for a given server name and user id.  This code had
been working fine to my knowledge.

Now something has happened, that is causing *most* of these processes to fail, at
the point of ConfigureMsgService.  It just stops, no error code.  I believe Exchange may have
popped up a dialog box asking for authentication (I'm not sure at the moment, waiting
to get confirmation).  The strange thing is, some accounts will work, and some don't.
If we retry again with an account that works, it might fail, and vice versa.  It appears to be
random.  If we are getting an authentication dialog, why is it not consistent?  Is
there any way this behavior can be turned off?

Any ideas?  Suggestions very much appreciated.

1 Solution
I think it might just be that MAPI is Broken.
This often happens after installation of Office 2007 on a users Machine.

IF you just run FIX MAPI, should be okay.

If 2007 was installed using a ADMIN template, there is also a FIX MAPI Option available to run on install.


Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now