A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

OpenMsgStore exception



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 26th 09, 10:36 AM posted to microsoft.public.outlook.program_addins
DamanPradhan via OfficeKB.com
external usenet poster
 
Posts: 4
Default 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

Ads
  #2  
Old February 26th 09, 10:43 AM posted to microsoft.public.outlook.program_addins
DamanPradhan via OfficeKB.com
external usenet poster
 
Posts: 4
Default 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

  #3  
Old February 26th 09, 03:26 PM posted to microsoft.public.outlook.program_addins
DamanPradhan via OfficeKB.com
external usenet poster
 
Posts: 4
Default 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

  #4  
Old February 26th 09, 04:55 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception Jason Outlook - Using Forms 2 December 28th 07 04:31 AM
OpenSharedItem - Exception Andre Maas Add-ins for Outlook 2 October 10th 07 03:29 PM
exception Reda Outlook - Calandaring 0 March 1st 07 07:26 PM
What is 0x0eedfade exception? Dmitry Streblechenko Add-ins for Outlook 2 June 20th 06 07:59 PM
Exception from HRESULT Laks Add-ins for Outlook 1 May 11th 06 09:24 AM


All times are GMT +1. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.