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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Could not retrieve IMessage: Interface not supported



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 20th 09, 05:10 PM posted to microsoft.public.outlook.program_vba
Jeff
external usenet poster
 
Posts: 41
Default Could not retrieve IMessage: Interface not supported

On some of my customers' machines, I'm receiving the following error
when my code accesses the SafeMailItem.Recipients property:

"Could not retrieve IMessage: Interface not supported"

I'm using Redemption 4.3 via late binding and registration-free COM.

Any ideas?

Thanks,
Jeff
Ads
  #2  
Old May 21st 09, 01:17 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Could not retrieve IMessage: Interface not supported

Do you by any chnace have both Exchange Server and Outlook on the same
machine?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Jeff" wrote in message
...
On some of my customers' machines, I'm receiving the following error
when my code accesses the SafeMailItem.Recipients property:

"Could not retrieve IMessage: Interface not supported"

I'm using Redemption 4.3 via late binding and registration-free COM.

Any ideas?

Thanks,
Jeff



  #3  
Old May 21st 09, 05:26 PM posted to microsoft.public.outlook.program_vba
Jeff
external usenet poster
 
Posts: 41
Default Could not retrieve IMessage: Interface not supported

I presume not, but I will double check. Also, I believe that we are
using Redemption 4.7, not 4.3 as I wrote in my original post.

The customer ran the Repair feature of Outlook 2007's installer, and
that did not help. It seems that all of our Outlook COM and Redemption
code works, except the Recipients property.

We installed a previous version of our product that uses a 2006-era
version of Redemption, and the errors went away.

We were able to duplicate the error message on a test machine by
installing Outlook 2007, then installing Outlook 2003, and then un-
installing Outlook 2003. The error went away once we Repaired Outlook
2007.


On May 20, 8:17*pm, "Dmitry Streblechenko" wrote:
Do you by any chnace have both Exchange Server and Outlook on the same
machine?

--
Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy *- Outlook, CDO
and MAPI Developer Tool
-"Jeff" wrote in message

...

On some of my customers' machines, I'm receiving the following error
when my code accesses the SafeMailItem.Recipients property:


"Could not retrieve IMessage: Interface not supported"


I'm using Redemption 4.3 via late binding and registration-free COM.


Any ideas?


Thanks,
Jeff


  #4  
Old May 22nd 09, 07:39 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Could not retrieve IMessage: Interface not supported

Yes, that is a strong indication that you have 2 versions of MAPI
installed - MailItem.MAPIOBJECT marshaling from the outlook.exe address
space to your app is done by the version of MAPI loaded by Outlook, while it
gets unmarshalled by another version of MAPI loaded by Redemption in your
app address space.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Jeff" wrote in message
...
I presume not, but I will double check. Also, I believe that we are
using Redemption 4.7, not 4.3 as I wrote in my original post.

The customer ran the Repair feature of Outlook 2007's installer, and
that did not help. It seems that all of our Outlook COM and Redemption
code works, except the Recipients property.

We installed a previous version of our product that uses a 2006-era
version of Redemption, and the errors went away.

We were able to duplicate the error message on a test machine by
installing Outlook 2007, then installing Outlook 2003, and then un-
installing Outlook 2003. The error went away once we Repaired Outlook
2007.


On May 20, 8:17 pm, "Dmitry Streblechenko" wrote:
Do you by any chnace have both Exchange Server and Outlook on the same
machine?

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

...

On some of my customers' machines, I'm receiving the following error
when my code accesses the SafeMailItem.Recipients property:


"Could not retrieve IMessage: Interface not supported"


I'm using Redemption 4.3 via late binding and registration-free COM.


Any ideas?


Thanks,
Jeff



  #5  
Old May 26th 09, 12:57 AM posted to microsoft.public.outlook.program_vba
Jeff
external usenet poster
 
Posts: 41
Default Could not retrieve IMessage: Interface not supported

On May 22, 2:39*pm, "Dmitry Streblechenko" wrote:
Yes, that is a strong indication that you have 2 versions of MAPI
installed - MailItem.MAPIOBJECT marshaling from the outlook.exe address
space to your app is done by the version of MAPI loaded by Outlook, while it
gets unmarshalled by another version of MAPI loaded by Redemption in your
app address space.

--
Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy *- Outlook, CDO
and MAPI Developer Tool
-"Jeff" wrote in message

...
I presume not, but I will double check. Also, I believe that we are
using Redemption 4.7, not 4.3 as I wrote in my original post.

The customer ran the Repair feature of Outlook 2007's installer, and
that did not help. It seems that all of our Outlook COM and Redemption
code works, except the Recipients property.

We installed a previous version of our product that uses a 2006-era
version of Redemption, and the errors went away.

We were able to duplicate the error message on a test machine by
installing Outlook 2007, then installing Outlook 2003, and then un-
installing Outlook 2003. The error went away once we Repaired Outlook
2007.

On May 20, 8:17 pm, "Dmitry Streblechenko" wrote:

Do you by any chnace have both Exchange Server and Outlook on the same
machine?


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


....


On some of my customers' machines, I'm receiving the following error
when my code accesses the SafeMailItem.Recipients property:


"Could not retrieveIMessage: Interface not supported"


I'm using Redemption 4.3 via late binding and registration-free COM.


Any ideas?


Thanks,
Jeff


We've also been able to duplicate the error message by setting the
default mail client to be Outlook Express instead of Outlook 2007. I
suspect that is the cause of the issue that our customer is
experiencing, as they do have Outlook Express set to be the default
mail client for reasons I won't get in to.

If you have any suggestions based on that information, let me know. I
wanted to post this in case it helps some one else in the future.

Thanks,
Jeff

Are
  #6  
Old May 27th 09, 06:18 PM posted to microsoft.public.outlook.program_vba
Jeff
external usenet poster
 
Posts: 41
Default Could not retrieve IMessage: Interface not supported

I have a couple more findings that I want to share w/ everyone.

1)
Something in Redemption.dll changed between v3.4 and v4.5 that causes
my original issue. Simply by switching to different versions of my
custom Redemption dll, I was able to make the issue appear and
disappear.


2)
The solution to this issue is to add Redemption.dll (or your
customized Redemption dll name) to the following registry key:

Parent registry key name:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem
\MSMapiApps

New key Name:
Redemption.dll (or your customized Redemption dll name)

New key Data:
"Microsoft Outlook"

This will tell Windows to route all extended mapi calls coming from
any process that has Redeption.dll loaded into memory to use the
extended mapi routing information found at the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Microsoft Outlook

My original problem was caused by Redemption's extended mapi calls to
be routed to Outlook Express and not Outlook. Older version of
Redemption seems to be unaffected by this.

See the following for mapi call routing details:

Explicitly Mapping MAPI Calls to MAPI DLLs
http://msdn.microsoft.com/en-us/library/dd162405.aspx

Mapi32.dll Stub Registry Settings
http://msdn.microsoft.com/en-us/library/dd162409.aspx


Note that this issue only happens if Outlook 2007 is installed and
Outlook Express is set to be the default mail client. Also note that
I'm not registering (via regsvr32.exe) my custom Redemption dll, I'm
using registration free COM.

Does anyone know which installer is responsible for maintaining
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem
\MSMapiApps ?

Thanks,
jb




  #7  
Old May 27th 09, 07:22 PM posted to microsoft.public.outlook.program_vba
Jeff
external usenet poster
 
Posts: 41
Default Could not retrieve IMessage: Interface not supported

On May 27, 1:18*pm, Jeff wrote:
I have a couple more findings that I want to share w/ everyone.

1)
Something in Redemption.dll changed between v3.4 and v4.5 that causes
my original issue. Simply by switching to different versions of my
custom Redemption dll, I was able to make the issue appear and
disappear.

2)
The solution to this issue is to add Redemption.dll (or your
customized Redemption dll name) to the following registry key:

Parent registry key name:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem
\MSMapiApps

New key Name:
Redemption.dll (or your customized Redemption dll name)

New key Data:
"Microsoft Outlook"

This will tell Windows to route all extended mapi calls coming from
any process that has Redeption.dll loaded into memory to use the
extended mapi routing information found at the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Microsoft Outlook

My original problem was caused by Redemption's extended mapi calls to
be routed to Outlook Express and not Outlook. Older version of
Redemption seems to be unaffected by this.

See the following for mapi call routing details:

Explicitly Mapping MAPI Calls to MAPI DLLshttp://msdn.microsoft.com/en-us/library/dd162405.aspx

Mapi32.dll Stub Registry Settingshttp://msdn.microsoft.com/en-us/library/dd162409.aspx

Note that this issue only happens if Outlook 2007 is installed and
Outlook Express is set to be the default mail client. Also note that
I'm not registering (via regsvr32.exe) my custom Redemption dll, I'm
using registration free COM.

Does anyone know which installer is responsible for maintaining
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem
\MSMapiApps ?

Thanks,
jb


I see that the issue i just described is listed on Dmitry's FAQ as
item number 7:

http://www.dimastr.com/redemption/faq.htm#7
  #8  
Old May 28th 09, 10:16 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Could not retrieve IMessage: Interface not supported

Actually AFAIK MSMapiApps registry key handles only executables, not dlls.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Jeff" wrote in message
...
On May 27, 1:18 pm, Jeff wrote:
I have a couple more findings that I want to share w/ everyone.

1)
Something in Redemption.dll changed between v3.4 and v4.5 that causes
my original issue. Simply by switching to different versions of my
custom Redemption dll, I was able to make the issue appear and
disappear.

2)
The solution to this issue is to add Redemption.dll (or your
customized Redemption dll name) to the following registry key:

Parent registry key name:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem
\MSMapiApps

New key Name:
Redemption.dll (or your customized Redemption dll name)

New key Data:
"Microsoft Outlook"

This will tell Windows to route all extended mapi calls coming from
any process that has Redeption.dll loaded into memory to use the
extended mapi routing information found at the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Microsoft Outlook

My original problem was caused by Redemption's extended mapi calls to
be routed to Outlook Express and not Outlook. Older version of
Redemption seems to be unaffected by this.

See the following for mapi call routing details:

Explicitly Mapping MAPI Calls to MAPI
DLLshttp://msdn.microsoft.com/en-us/library/dd162405.aspx

Mapi32.dll Stub Registry
Settingshttp://msdn.microsoft.com/en-us/library/dd162409.aspx

Note that this issue only happens if Outlook 2007 is installed and
Outlook Express is set to be the default mail client. Also note that
I'm not registering (via regsvr32.exe) my custom Redemption dll, I'm
using registration free COM.

Does anyone know which installer is responsible for maintaining
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem
\MSMapiApps ?

Thanks,
jb


I see that the issue i just described is listed on Dmitry's FAQ as
item number 7:

http://www.dimastr.com/redemption/faq.htm#7


 




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
none of the authentication methods supported by this client are supported by your server Wayne Dolby Outlook - General Queries 7 May 8th 09 05:33 PM
Interface not supported at Redemption.IRDOSession.set_MAPIOBJECT MA[_2_] Outlook and VBA 7 December 19th 08 07:35 AM
Show error message " No Such Interface Supported " Sikchun Outlook and VBA 3 December 15th 08 02:02 PM
writing email get word error message interface not supported Erik R Outlook - General Queries 2 October 12th 06 07:28 PM
NewInspector Event and "No Such Interface Supported" jim Add-ins for Outlook 0 January 10th 06 03:22 AM


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