Thanks Ken.
I'm trying the following C# code for simple lookup of a contact. I've
registered the dll in registry and included reference in project (VS 2005)
public partial class Test1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//Redemption.RDOSessionClass s1 = new Redemption.RDOSessionClass();
Redemption.RDOSession s1 = new Redemption.RDOSession();
s1.Logon(null,null,null,null,null,null);
Redemption.RDOAddressEntry entry =
s1.AddressBook.GAL.ResolveName("John");
delegateValue.Text = entry.Address + entry.Alias;
}
}
And I'm getting a runtime exception while creating RDOSession object and
same with RDOSessionClass.
Error Message:
Creating an instance of the COM component with CLSID
{29AB7A12-B531-450E-8F7A-EA94C2F3C05F} from the IClassFactory failed due to
the following error: 80040605.
Could you please help on this?
Equivalent code s running fine in vbscript(from webpage-client) and
delegates property too
set Session = CreateObject("Redemption.RDOSession")
Session.Logon
set AdrrEntries = Session.AddressBook.GAL.ResolveName("John")
MsgBox AdrrEntries.Name
set Addrdelagates = AdrrEntries.Delegates
count = Addrdelagates.Count
for i = 1 to count
MsgBox Addrdelagates.Item(i).Name
next
Post by Ken Slovak - [MVP - Outlook]Server side code would use the same interfaces and would need a local copy
of Outlook installed. The server side code would also need to log into the
Outlook session as a Windows user with permissions to access whatever
mailbox was required.
That still wouldn't get you anything, you'd still have to use Redemption or
Extended MAPI. MAPI can only be programmed using C++ and unmanaged code and
has a long learning curve.
You might be able to query an Exchange server using Exchange Web services
(for Exchange 2007 or later) or using WebDAV for Exchange 2003. However that
you'd have to ask about in an Exchange development group, it wouldn't be
Outlook code at all in that case.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
Post by KalyanHi Ken/Someone,
Is it possible to find this property from serverside code (VB.Net or C#.Net)
?. I couldn't locate it in Interop API(Microsoft) .. Is there any other API
or tool that exposes this so that I can get the value from server side code?
Many thanks
Kalyan