Failed to connect to PST file using MAPI

Tech-Archive recommends: Fix windows errors by optimizing your registry



I am writing program for fetching data from Exchange sever and PST
files.
Program faces following four scenarios for connections
1. Repeatedly connect to exchange server
2. Repeatedly connect to PST file
3. First connect to exchange server and then to PST file
4. First connect to PST file and then to Exchange server.

However, third scenario is not working (i.e. After connecting to
exchange sever, I am not able to connect to PST file). In this
scenario, Code to connect to PST file, fails in
IMsgServiceAdmin::ConfigureMsgService with MAPI_E_NO_ACCESS error.
Error message displayed is as follows

"The file E:\Outlook.pst has changed since you last run Microsoft
Office Outlook. The change will take effect next time you start
Outlook"

Please Note:
For each connection, separate temporary MAPI profile and MAPI session
is created.
After each connection termination, all varibles are released, profile
is deleted, IMAPISession::Logoff and MAPIUninitialize is called.

Can anyone help me out why this error comes?
Any help on this will be greatly appreciated,

Thanks,
Rohit
.



Relevant Pages

  • Re: RDP & Port Forwarding
    ... Scenario 2: Using Remote Desktop outside your network ... you have a persistent high-speed connection --if you only ... This is the port that Remote Desktop uses by default, ...
    (microsoft.public.windowsxp.general)
  • Re: Remobjects, good in multi-threading environment?
    ... the connection is interrupted regularly. ... This can certainly be handled by the WIB. ... require a response back. ... Hence your worst case scenario would still work and we would be able to ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Web Part Connection w/ DocLib?
    ... > I don't think you completely understand his scenario, ... > (this should create a Data View of the Doc Lib) ... > create a data view of the XML file - you can add and remove and format ... Finish the connection creating a hyperlink on one of your fields ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: ADO - Bad when it is time to Optimize
    ... They were using ADO 2.5 and the MSOracle provider (and Oracle ... ActiveConnection was 'nothing', but the connection was still out there. ... Which leads to another interesting point. ... scenario - the data access version, the provider/driver, the ...
    (microsoft.public.data.ado)
  • rda pull error
    ... i can pull some of the tables individually no problem but, ... connection is reqd..... ... can repeat the scenario again. ... put the pc back on the internal network and all the problems go away. ...
    (microsoft.public.sqlserver.ce)