We help IT Professionals succeed at work.
Get Started

MAPI Programming, ConfigureMsgService causes hang

jmckay321 asked
Last Modified: 2012-05-09
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.

Watch Question
Top Expert 2012
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE