![]() |
OpenMsgStore exception
Hi,
I'm developing an application using MAPI (Mapi33.dll). I'm creating a temp. profile in this fashion (using C#): string ProfileName = Guid.NewGuid().ToString(); MAPI33.Helpers.Profile.Create(ProfileName, MAPI33.Helpers. Profile.FLAGS.AddPrivateAndPublicStore | MAPI33.Helpers.Profile.FLAGS. UseAdminPrivilege,ExchangeServerName, UserName, null); The strange part is that on some systems, this line thows a username / password login box (which is good bcoz it then logs into the Exch. Server), and on others, it does not. On the ones that do not, I get this error on trying to open a message store (the OpenMsgStore() function ) : FailOneProvider. (8004011D) Can anyone help me solve this issue ? How can we force the username / password box to ALWAYS show itself when we try to log into the Exch. Server ? Thanks in advance !!! -- Message posted via http://www.officekb.com |
OpenMsgStore exception
Just noticed that the username / password box pops up on a Windows Server
2003 machine and does not on a XP system. Is there some sort of a system setting that needs to be changed somewhere ? Regards, Daman DamanPradhan wrote: Hi, I'm developing an application using MAPI (Mapi33.dll). I'm creating a temp. profile in this fashion (using C#): string ProfileName = Guid.NewGuid().ToString(); MAPI33.Helpers.Profile.Create(ProfileName, MAPI33.Helpers. Profile.FLAGS.AddPrivateAndPublicStore | MAPI33.Helpers.Profile.FLAGS. UseAdminPrivilege,ExchangeServerName, UserName, null); The strange part is that on some systems, this line thows a username / password login box (which is good bcoz it then logs into the Exch. Server), and on others, it does not. On the ones that do not, I get this error on trying to open a message store (the OpenMsgStore() function ) : FailOneProvider. (8004011D) Can anyone help me solve this issue ? How can we force the username / password box to ALWAYS show itself when we try to log into the Exch. Server ? Thanks in advance !!! -- - Daman Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ddins/200902/1 |
OpenMsgStore exception
Hi,
I just happened to come across this link which does pretty much what I want : http://www.tech-archive.net/Archive/...4-08/0057.html Dmitry says : "Open the global profile secition (pbGlobalProfileSectionGuid), and set PR_PROFILE_CONFIG_FLAGS to CONFIG_SHOW_CONNECT_UI | CONFIG_PROMPT_FOR_CREDENTIALS" I'm a newbie to MAPI and could not pin point how to open the Global Profile Section mentioned here. Specifically, I found OpenProfileSection() in 3 namespaces : MapiSession, MsgServiceAdmin and ProviderAdmin. Which of these namespaces do i use ? Also, in calls to OpenProfileSection(), there is a UID argument that has to be passed. Where do I get the UID from ? Also, can anyone please let me know whats the second argument in the following API ? public MAPI33.Error MsgServiceAdmin.OpenProfileSection(System.Guid UID, System.Guid Interface, __MAPI33__INTERNALS__.MsgServiceAdmin.FLAGS Flags, out MAPI33.IProfSect PrfSect) Thanks in advance ! Daman DamanPradhan wrote: Just noticed that the username / password box pops up on a Windows Server 2003 machine and does not on a XP system. Is there some sort of a system setting that needs to be changed somewhere ? Regards, Daman Hi, [quoted text clipped - 15 lines] Thanks in advance !!! -- Message posted via http://www.officekb.com |
OpenMsgStore exception
First, MAPI questions have a better chnace of being answered in teh MAPI
newsgroup (programmer.messaging). Secondly, your code must run under the identity of the domain Windows user who wons teh primary mailbox in the profile. Otehrwise you will get an authentication prompt. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "DamanPradhan via OfficeKB.com" u49522@uwe wrote in message news:924a0c378d688@uwe... Hi, I just happened to come across this link which does pretty much what I want : http://www.tech-archive.net/Archive/...4-08/0057.html Dmitry says : "Open the global profile secition (pbGlobalProfileSectionGuid), and set PR_PROFILE_CONFIG_FLAGS to CONFIG_SHOW_CONNECT_UI | CONFIG_PROMPT_FOR_CREDENTIALS" I'm a newbie to MAPI and could not pin point how to open the Global Profile Section mentioned here. Specifically, I found OpenProfileSection() in 3 namespaces : MapiSession, MsgServiceAdmin and ProviderAdmin. Which of these namespaces do i use ? Also, in calls to OpenProfileSection(), there is a UID argument that has to be passed. Where do I get the UID from ? Also, can anyone please let me know whats the second argument in the following API ? public MAPI33.Error MsgServiceAdmin.OpenProfileSection(System.Guid UID, System.Guid Interface, __MAPI33__INTERNALS__.MsgServiceAdmin.FLAGS Flags, out MAPI33.IProfSect PrfSect) Thanks in advance ! Daman DamanPradhan wrote: Just noticed that the username / password box pops up on a Windows Server 2003 machine and does not on a XP system. Is there some sort of a system setting that needs to be changed somewhere ? Regards, Daman Hi, [quoted text clipped - 15 lines] Thanks in advance !!! -- Message posted via http://www.officekb.com |
All times are GMT +1. The time now is 12:29 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com