M
MA
Hi Guys,
I have written a solution which works fine in Outlook 2003 & 2007. I
have decided to upgrade the redemption from "4.4.0.714" to "4.6.0.924"
and the solution unable to work in Outlook 2007. It works fine in
Outlook 2003.
Please see below the error message...
<Exception Text>
System.Runtime.InteropServices.COMException (0x8000FFFF): Interface
not supported
at Redemption.IRDOSession.set_MAPIOBJECT(Object Value)
at RedemptionTester.Form1.InitRDOObjects(Application olApp)
at RedemptionTester.Form1.button1_Click(Object sender, EventArgs e)
</Exception Text>
Please see below the test code which failes in Outlook 2007...
<code>
private void button1_Click(object sender, EventArgs e)
{
Outlook.Application olApp = null;
Outlook.NameSpace olNameSpace = null;
try
{
if (olApp == null)
olApp = new Outlook.ApplicationClass();
System.Windows.Forms.Application.DoEvents();
if (olNameSpace == null)
olNameSpace = olApp.GetNamespace("MAPI");
InitRDOObjects(olApp);
}
finally
{
Marshal.ReleaseComObject(olApp);
olApp = null;
Marshal.ReleaseComObject(olNameSpace);
olNameSpace = null;
}
}
/// <summary>
/// Initialize the objects
/// </summary>
private void InitRDOObjects(Outlook.Application olApp)
{
Redemption.RDOSession rdoSession = null;
Type type = Type.GetTypeFromProgID("XYZ.RDOSession");
rdoSession = (RDOSession)Activator.CreateInstance(type);
rdoSession.AuthKey = "MYKey";
rdoSession.MAPIOBJECT = olApp.Session.MAPIOBJECT;
}
</code>
Has anyone seen this behaviour? Thanks for your response.
Regards,
MA
I have written a solution which works fine in Outlook 2003 & 2007. I
have decided to upgrade the redemption from "4.4.0.714" to "4.6.0.924"
and the solution unable to work in Outlook 2007. It works fine in
Outlook 2003.
Please see below the error message...
<Exception Text>
System.Runtime.InteropServices.COMException (0x8000FFFF): Interface
not supported
at Redemption.IRDOSession.set_MAPIOBJECT(Object Value)
at RedemptionTester.Form1.InitRDOObjects(Application olApp)
at RedemptionTester.Form1.button1_Click(Object sender, EventArgs e)
</Exception Text>
Please see below the test code which failes in Outlook 2007...
<code>
private void button1_Click(object sender, EventArgs e)
{
Outlook.Application olApp = null;
Outlook.NameSpace olNameSpace = null;
try
{
if (olApp == null)
olApp = new Outlook.ApplicationClass();
System.Windows.Forms.Application.DoEvents();
if (olNameSpace == null)
olNameSpace = olApp.GetNamespace("MAPI");
InitRDOObjects(olApp);
}
finally
{
Marshal.ReleaseComObject(olApp);
olApp = null;
Marshal.ReleaseComObject(olNameSpace);
olNameSpace = null;
}
}
/// <summary>
/// Initialize the objects
/// </summary>
private void InitRDOObjects(Outlook.Application olApp)
{
Redemption.RDOSession rdoSession = null;
Type type = Type.GetTypeFromProgID("XYZ.RDOSession");
rdoSession = (RDOSession)Activator.CreateInstance(type);
rdoSession.AuthKey = "MYKey";
rdoSession.MAPIOBJECT = olApp.Session.MAPIOBJECT;
}
</code>
Has anyone seen this behaviour? Thanks for your response.
Regards,
MA