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

IMsgServiceAdmin::AdminProviders fails with 0x80010104



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 22nd 06, 03:06 PM posted to microsoft.public.outlook.program_addins
Lars Iversen
external usenet poster
 
Posts: 4
Default IMsgServiceAdmin::AdminProviders fails with 0x80010104

Hi.

I take part in developing an exchange client extension for Outlook
based on extended MAPI. The application extends Outlook with commands,
a new message class and a form, uses advise sinks to listen to folders
for events, adds and removes message stores from the profile, etc. I
use VS2005 on different platforms.

Inside my implementation of IExchExt::Install, the extension accesses
the (outlook) profile, and adds and removes message stores as described
in http://support.microsoft.com/?kbid=171636. No problem, works fine.

However, when I try to access the profile in much the same way (just
for reading purposes) from my implementation of
IPersistMessage::InitNew, it fails. More specifically,
IMsgServiceAdmin::AdminProviders returns 0x80010104 (RPC could not call
the server or could not return the result of calling the server). I
have included pseudo code below. Any clue of what is going wrong?

Regards,
Lars

STDMETHODIMP MyForm::InitNew(IMAPIMessageSite* site, IMessage*)
{
CComPtrIMAPISession session;
site-GetSession(&session.p);
CComPtrIMsgServiceAdmin messageServiceAdministration;
session-AdminServices(0, &messageServiceAdministration.p);
CComPtrIMAPITable table;
messageServiceAdministration.GetMessageServiceTabl e(0, &table.p);
MAPIUID uid = ...; // the uid in the table with PR_SERVICE_NAME =
'MSEMS'
CComPtrIProviderAdmin providerAdmin;
HRESULT hr = messageServiceAdministration-AdminProviders(&uid, 0,
&providerAdmin.p); // hr has the value 0x80010104

Ads
  #2  
Old August 22nd 06, 06:25 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IMsgServiceAdmin::AdminProviders fails with 0x80010104

Is your form implemented in a separate exe or a dll?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Hi.

I take part in developing an exchange client extension for Outlook
based on extended MAPI. The application extends Outlook with commands,
a new message class and a form, uses advise sinks to listen to folders
for events, adds and removes message stores from the profile, etc. I
use VS2005 on different platforms.

Inside my implementation of IExchExt::Install, the extension accesses
the (outlook) profile, and adds and removes message stores as described
in http://support.microsoft.com/?kbid=171636. No problem, works fine.

However, when I try to access the profile in much the same way (just
for reading purposes) from my implementation of
IPersistMessage::InitNew, it fails. More specifically,
IMsgServiceAdmin::AdminProviders returns 0x80010104 (RPC could not call
the server or could not return the result of calling the server). I
have included pseudo code below. Any clue of what is going wrong?

Regards,
Lars

STDMETHODIMP MyForm::InitNew(IMAPIMessageSite* site, IMessage*)
{
CComPtrIMAPISession session;
site-GetSession(&session.p);
CComPtrIMsgServiceAdmin messageServiceAdministration;
session-AdminServices(0, &messageServiceAdministration.p);
CComPtrIMAPITable table;
messageServiceAdministration.GetMessageServiceTabl e(0, &table.p);
MAPIUID uid = ...; // the uid in the table with PR_SERVICE_NAME =
'MSEMS'
CComPtrIProviderAdmin providerAdmin;
HRESULT hr = messageServiceAdministration-AdminProviders(&uid, 0,
&providerAdmin.p); // hr has the value 0x80010104



  #3  
Old August 23rd 06, 07:00 AM posted to microsoft.public.outlook.program_addins
Lars Iversen
external usenet poster
 
Posts: 4
Default IMsgServiceAdmin::AdminProviders fails with 0x80010104

It is implemented in a separate exe.

Dmitry Streblechenko wrote:
Is your form implemented in a separate exe or a dll?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Hi.

I take part in developing an exchange client extension for Outlook
based on extended MAPI. The application extends Outlook with commands,
a new message class and a form, uses advise sinks to listen to folders
for events, adds and removes message stores from the profile, etc. I
use VS2005 on different platforms.

Inside my implementation of IExchExt::Install, the extension accesses
the (outlook) profile, and adds and removes message stores as described
in http://support.microsoft.com/?kbid=171636. No problem, works fine.

However, when I try to access the profile in much the same way (just
for reading purposes) from my implementation of
IPersistMessage::InitNew, it fails. More specifically,
IMsgServiceAdmin::AdminProviders returns 0x80010104 (RPC could not call
the server or could not return the result of calling the server). I
have included pseudo code below. Any clue of what is going wrong?

Regards,
Lars

STDMETHODIMP MyForm::InitNew(IMAPIMessageSite* site, IMessage*)
{
CComPtrIMAPISession session;
site-GetSession(&session.p);
CComPtrIMsgServiceAdmin messageServiceAdministration;
session-AdminServices(0, &messageServiceAdministration.p);
CComPtrIMAPITable table;
messageServiceAdministration.GetMessageServiceTabl e(0, &table.p);
MAPIUID uid = ...; // the uid in the table with PR_SERVICE_NAME =
'MSEMS'
CComPtrIProviderAdmin providerAdmin;
HRESULT hr = messageServiceAdministration-AdminProviders(&uid, 0,
&providerAdmin.p); // hr has the value 0x80010104


  #4  
Old August 23rd 06, 07:31 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IMsgServiceAdmin::AdminProviders fails with 0x80010104

Try to move the implementation to a dll to make sure it is loaded in-proc:
IMAPISession has a few bugs when it comes to marshalling - profile sections
and ACLs are the two major problems (to be fixed in Outlook 2007).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
oups.com...
It is implemented in a separate exe.

Dmitry Streblechenko wrote:
Is your form implemented in a separate exe or a dll?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Hi.

I take part in developing an exchange client extension for Outlook
based on extended MAPI. The application extends Outlook with commands,
a new message class and a form, uses advise sinks to listen to folders
for events, adds and removes message stores from the profile, etc. I
use VS2005 on different platforms.

Inside my implementation of IExchExt::Install, the extension accesses
the (outlook) profile, and adds and removes message stores as described
in http://support.microsoft.com/?kbid=171636. No problem, works fine.

However, when I try to access the profile in much the same way (just
for reading purposes) from my implementation of
IPersistMessage::InitNew, it fails. More specifically,
IMsgServiceAdmin::AdminProviders returns 0x80010104 (RPC could not call
the server or could not return the result of calling the server). I
have included pseudo code below. Any clue of what is going wrong?

Regards,
Lars

STDMETHODIMP MyForm::InitNew(IMAPIMessageSite* site, IMessage*)
{
CComPtrIMAPISession session;
site-GetSession(&session.p);
CComPtrIMsgServiceAdmin messageServiceAdministration;
session-AdminServices(0, &messageServiceAdministration.p);
CComPtrIMAPITable table;
messageServiceAdministration.GetMessageServiceTabl e(0, &table.p);
MAPIUID uid = ...; // the uid in the table with PR_SERVICE_NAME =
'MSEMS'
CComPtrIProviderAdmin providerAdmin;
HRESULT hr = messageServiceAdministration-AdminProviders(&uid, 0,
&providerAdmin.p); // hr has the value 0x80010104




  #5  
Old August 23rd 06, 02:10 PM posted to microsoft.public.outlook.program_addins
Lars Iversen
external usenet poster
 
Posts: 4
Default IMsgServiceAdmin::AdminProviders fails with 0x80010104

Thanks for the answer. Moving it to an in-proc dll is probably not an
option right now, but it is nice to know that it will be fixed in the
next version of Outlook.

Nice having you around!

Regards,
Lars

Dmitry Streblechenko wrote:
Try to move the implementation to a dll to make sure it is loaded in-proc:
IMAPISession has a few bugs when it comes to marshalling - profile sections
and ACLs are the two major problems (to be fixed in Outlook 2007).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
oups.com...
It is implemented in a separate exe.

Dmitry Streblechenko wrote:
Is your form implemented in a separate exe or a dll?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Hi.

I take part in developing an exchange client extension for Outlook
based on extended MAPI. The application extends Outlook with commands,
a new message class and a form, uses advise sinks to listen to folders
for events, adds and removes message stores from the profile, etc. I
use VS2005 on different platforms.

Inside my implementation of IExchExt::Install, the extension accesses
the (outlook) profile, and adds and removes message stores as described
in http://support.microsoft.com/?kbid=171636. No problem, works fine.

However, when I try to access the profile in much the same way (just
for reading purposes) from my implementation of
IPersistMessage::InitNew, it fails. More specifically,
IMsgServiceAdmin::AdminProviders returns 0x80010104 (RPC could not call
the server or could not return the result of calling the server). I
have included pseudo code below. Any clue of what is going wrong?

Regards,
Lars

STDMETHODIMP MyForm::InitNew(IMAPIMessageSite* site, IMessage*)
{
CComPtrIMAPISession session;
site-GetSession(&session.p);
CComPtrIMsgServiceAdmin messageServiceAdministration;
session-AdminServices(0, &messageServiceAdministration.p);
CComPtrIMAPITable table;
messageServiceAdministration.GetMessageServiceTabl e(0, &table.p);
MAPIUID uid = ...; // the uid in the table with PR_SERVICE_NAME =
'MSEMS'
CComPtrIProviderAdmin providerAdmin;
HRESULT hr = messageServiceAdministration-AdminProviders(&uid, 0,
&providerAdmin.p); // hr has the value 0x80010104



  #6  
Old August 23rd 06, 06:05 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IMsgServiceAdmin::AdminProviders fails with 0x80010104

I obviously don't know how your code is structured, but you can combine the
ECE and the custom form implementation in the same dll. One less executable,
plus you can easily make the ECE and the MAPI form parts to interact with
each other through the global variables.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Thanks for the answer. Moving it to an in-proc dll is probably not an
option right now, but it is nice to know that it will be fixed in the
next version of Outlook.

Nice having you around!

Regards,
Lars

Dmitry Streblechenko wrote:
Try to move the implementation to a dll to make sure it is loaded
in-proc:
IMAPISession has a few bugs when it comes to marshalling - profile
sections
and ACLs are the two major problems (to be fixed in Outlook 2007).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
oups.com...
It is implemented in a separate exe.

Dmitry Streblechenko wrote:
Is your form implemented in a separate exe or a dll?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Hi.

I take part in developing an exchange client extension for Outlook
based on extended MAPI. The application extends Outlook with
commands,
a new message class and a form, uses advise sinks to listen to
folders
for events, adds and removes message stores from the profile, etc. I
use VS2005 on different platforms.

Inside my implementation of IExchExt::Install, the extension
accesses
the (outlook) profile, and adds and removes message stores as
described
in http://support.microsoft.com/?kbid=171636. No problem, works
fine.

However, when I try to access the profile in much the same way (just
for reading purposes) from my implementation of
IPersistMessage::InitNew, it fails. More specifically,
IMsgServiceAdmin::AdminProviders returns 0x80010104 (RPC could not
call
the server or could not return the result of calling the server). I
have included pseudo code below. Any clue of what is going wrong?

Regards,
Lars

STDMETHODIMP MyForm::InitNew(IMAPIMessageSite* site, IMessage*)
{
CComPtrIMAPISession session;
site-GetSession(&session.p);
CComPtrIMsgServiceAdmin messageServiceAdministration;
session-AdminServices(0, &messageServiceAdministration.p);
CComPtrIMAPITable table;
messageServiceAdministration.GetMessageServiceTabl e(0, &table.p);
MAPIUID uid = ...; // the uid in the table with PR_SERVICE_NAME =
'MSEMS'
CComPtrIProviderAdmin providerAdmin;
HRESULT hr = messageServiceAdministration-AdminProviders(&uid, 0,
&providerAdmin.p); // hr has the value 0x80010104





  #7  
Old August 24th 06, 07:37 AM posted to microsoft.public.outlook.program_addins
Lars Iversen
external usenet poster
 
Posts: 4
Default IMsgServiceAdmin::AdminProviders fails with 0x80010104

That is clearly the way I want to go, but the product I am developing
is more than 10 years old, thus it is not a trivial task. I hope to get
there and to get rid of a lot of problems related to having several
processes.

Dmitry Streblechenko wrote:
I obviously don't know how your code is structured, but you can combine the
ECE and the custom form implementation in the same dll. One less executable,
plus you can easily make the ECE and the MAPI form parts to interact with
each other through the global variables.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Thanks for the answer. Moving it to an in-proc dll is probably not an
option right now, but it is nice to know that it will be fixed in the
next version of Outlook.

Nice having you around!

Regards,
Lars

Dmitry Streblechenko wrote:
Try to move the implementation to a dll to make sure it is loaded
in-proc:
IMAPISession has a few bugs when it comes to marshalling - profile
sections
and ACLs are the two major problems (to be fixed in Outlook 2007).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
oups.com...
It is implemented in a separate exe.

Dmitry Streblechenko wrote:
Is your form implemented in a separate exe or a dll?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Lars Iversen" wrote in message
ups.com...
Hi.

I take part in developing an exchange client extension for Outlook
based on extended MAPI. The application extends Outlook with
commands,
a new message class and a form, uses advise sinks to listen to
folders
for events, adds and removes message stores from the profile, etc. I
use VS2005 on different platforms.

Inside my implementation of IExchExt::Install, the extension
accesses
the (outlook) profile, and adds and removes message stores as
described
in http://support.microsoft.com/?kbid=171636. No problem, works
fine.

However, when I try to access the profile in much the same way (just
for reading purposes) from my implementation of
IPersistMessage::InitNew, it fails. More specifically,
IMsgServiceAdmin::AdminProviders returns 0x80010104 (RPC could not
call
the server or could not return the result of calling the server). I
have included pseudo code below. Any clue of what is going wrong?

Regards,
Lars

STDMETHODIMP MyForm::InitNew(IMAPIMessageSite* site, IMessage*)
{
CComPtrIMAPISession session;
site-GetSession(&session.p);
CComPtrIMsgServiceAdmin messageServiceAdministration;
session-AdminServices(0, &messageServiceAdministration.p);
CComPtrIMAPITable table;
messageServiceAdministration.GetMessageServiceTabl e(0, &table.p);
MAPIUID uid = ...; // the uid in the table with PR_SERVICE_NAME =
'MSEMS'
CComPtrIProviderAdmin providerAdmin;
HRESULT hr = messageServiceAdministration-AdminProviders(&uid, 0,
&providerAdmin.p); // hr has the value 0x80010104




 




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
Pfbackup.exe fails to install Howard Sartori Outlook - Installation 1 July 9th 06 08:00 PM
Powerpoint Viewer Fails Patrick Outlook - Installation 1 April 12th 06 09:23 PM
Outlook fails to load Cocajola Outlook - Using Forms 0 March 15th 06 09:27 AM
Outlook Startup fails Tomk Outlook - Installation 0 March 3rd 06 03:41 PM
iCal import fails Otto Outlook - Calandaring 3 March 1st 06 03:12 PM


All times are GMT +1. The time now is 09:32 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.