G
Guest
Hello,
I am using the following C# code to get the freeBusy status of a user. However, the
getFreeBusy function is returning null. The code is part of a service I have
running on my local machine which is in the same domain as Exchange server (2003).
Does anyone have any suggestions? Thank you.
public void readFreeBusyString(DateTime dtStartDate,
DateTime dtEndDate, int Interval)
{
try
{
// Variables.
CDO.Addressee iAddr = new CDO.Addressee();
ActiveDs.ADSystemInfo Info = new ActiveDs.ADSystemInfo();
iAddr.EmailAddress = this.email;
if (!(iAddr.CheckName("LDAP://" + Info.DomainDNSName, "", "")))
throw new System.Exception("Error occured!");
// Get the free/busy status in Interval minute
// intervals from dtStartDate to dtEndDate.
this.freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, Interval, "", "", "", "");
}
catch (Exception err)
{
//write to the event log
}
}
I am using the following C# code to get the freeBusy status of a user. However, the
getFreeBusy function is returning null. The code is part of a service I have
running on my local machine which is in the same domain as Exchange server (2003).
Does anyone have any suggestions? Thank you.
public void readFreeBusyString(DateTime dtStartDate,
DateTime dtEndDate, int Interval)
{
try
{
// Variables.
CDO.Addressee iAddr = new CDO.Addressee();
ActiveDs.ADSystemInfo Info = new ActiveDs.ADSystemInfo();
iAddr.EmailAddress = this.email;
if (!(iAddr.CheckName("LDAP://" + Info.DomainDNSName, "", "")))
throw new System.Exception("Error occured!");
// Get the free/busy status in Interval minute
// intervals from dtStartDate to dtEndDate.
this.freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, Interval, "", "", "", "");
}
catch (Exception err)
{
//write to the event log
}
}