 |
|
|
|
| Author |
Message |
thecountycalls
Joined: 27 Aug 2007 Posts: 2
|
Posted: Tue Aug 28, 2007 1:05 am Post subject: IAddressee.GetFreeBusy returns null string |
|
|
Hi,
I have a very simple application written in C#, using CDOEX v.
6.5.7638.1. I instantiate an Addressee object. Then call CheckName on
the object. I am then able to trace out the Addressee's properties, so
it is getting filled in during CheckName. Then I call GetFreeBusy and
it returns a null string. I have tried this when the state should have
been most conceivable combinations. All free, all busy, start free end
busy, start busy end free, free busy free, etc. I have pasted most of
the code below. I removed most of the extra stuff. I am running this
on the Exchange 2003 server. This is all the code, so am I missing
some initialization? Am I using improper LDAP string? Am I missing a
step? Thanks a lot for any suggestions.
CDO.Addressee iAddr = new CDO.Addressee();
iAddr.EmailAddress = txtEmail.Text; // testuser1@testdoma.local
// LDAP://testdoma.local usename and password are blank, using the
current user's credentials
bool bResolvedName = iAddr.CheckName("LDAP://" + txtDomain.Text, "",
"");
if (!bResolvedName)
{
throw new System.Exception("Error occured!");
}
CDO.CdoResolvedStatus status = iAddr.ResolvedStatus;
switch (status)
{
case CDO.CdoResolvedStatus.cdoResolved:
{
DateTime dtStartDate = new DateTime(DateTime.Now.Year,
DateTime.Now.Month, DateTime.Now.Day, 9, 30, 00);
dtStartDate = dtStartDate.AddDays(1);
DateTime dtEndDate = dtStartDate.AddHours(3);
int interval = 30;
// Get the free/busy status in Interval minute
// intervals from dtStartDate to dtEndDate.
freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, interval,
"", "", "", "");
}
break
};
Archived from group: microsoft>public>exchange>applications |
|
| Back to top |
|
 |
Dgoldman [MSFT]
Joined: 05 Aug 2007 Posts: 45
|
Posted: Mon Sep 03, 2007 2:49 am Post subject: Re: IAddressee.GetFreeBusy returns null string |
|
|
One thing I see is that you have some extra parameters in that function
call.
freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, interval, "", "", "",
"");
should look like this
freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, interval);
Also are you calling this from within the same domain?
I am not sure if you are using the ExchangeDistributionList anywhere in your
code but the ExchangeDistributionList object is derived from the
AddressEntry object. It inherits the GetFreeBusy method from the
AddressEntry object, and in the case of ExchangeDistributionList, regardless
of the values of the parameters, this method always returns Null.
This method does not return the free-busy information of individual members
of an ExchangeDistributionList. To obtain free-busy information for a
meeting request, send the request to individual users. Use the
AddressEntry.AddressEntryUserType property of the AddressEntry object
obtained from Recipient.AddressEntry to determine if a Recipient represents
an ExchangeDistributionList.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Dgoldman
http://blogs.msdn.com/dgoldman
Download OABInteg
(http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A2338E73-F521-4071-9B1D-AAF49C346ACD)
wrote in message @r34g2000hsd.googlegroups.com...
> Hi,
>
> I have a very simple application written in C#, using CDOEX v. 6.5.7638.1.
> I instantiate an Addressee object. Then call CheckName on the object. I am
> then able to trace out the Addressee's properties, so it is getting filled
> in during CheckName. Then I call GetFreeBusy and it returns a null string.
> I have tried this when the state should have been most conceivable
> combinations. All free, all busy, start free end busy, start busy end
> free, free busy free, etc. I have pasted most of
> the code below. I removed most of the extra stuff. I am running this on
> the Exchange 2003 server. This is all the code, so am I missing some
> initialization? Am I using improper LDAP string? Am I missing a step?
> Thanks a lot for any suggestions.
>
>
> CDO.Addressee iAddr = new CDO.Addressee();
> iAddr.EmailAddress = txtEmail.Text; // testuser1@testdoma.local
> // LDAP://testdoma.local usename and password are blank, using the current
> user's credentials
> bool bResolvedName = iAddr.CheckName("LDAP://" + txtDomain.Text, "", "");
>
> if (!bResolvedName)
> {
> throw new System.Exception("Error occured!");
> }
>
> CDO.CdoResolvedStatus status = iAddr.ResolvedStatus;
> switch (status)
> {
> case CDO.CdoResolvedStatus.cdoResolved:
> {
>
> DateTime dtStartDate = new DateTime(DateTime.Now.Year,
> DateTime.Now.Month, DateTime.Now.Day, 9, 30, 00);
> dtStartDate = dtStartDate.AddDays(1);
> DateTime dtEndDate = dtStartDate.AddHours(3);
> int interval = 30;
>
> // Get the free/busy status in Interval minute
> // intervals from dtStartDate to dtEndDate.
> freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, interval, "",
> "", "", "");
> }
> break
> };
> |
|
| Back to top |
|
 |
thecountycalls
Joined: 27 Aug 2007 Posts: 2
|
Posted: Wed Sep 05, 2007 12:29 pm Post subject: Re: IAddressee.GetFreeBusy returns null string |
|
|
On Sep 2, 10:49 pm, "Dgoldman [MSFT]" wrote:
> One thing I see is that you have some extra parameters in that function
> call.
>
> freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, interval, "", "", "",
> "");
> should look like this
> freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, interval);
>
> Also are you calling this from within the same domain?
>
> I am not sure if you are using the ExchangeDistributionList anywhere in your
> code but the ExchangeDistributionList object is derived from the
> AddressEntry object. It inherits the GetFreeBusy method from the
> AddressEntry object, and in the case of ExchangeDistributionList, regardless
> of the values of the parameters, this method always returns Null.
>
> This method does not return the free-busy information of individual members
> of an ExchangeDistributionList. To obtain free-busy information for a
> meeting request, send the request to individual users. Use the
> AddressEntry.AddressEntryUserType property of the AddressEntry object
> obtained from Recipient.AddressEntry to determine if a Recipient represents
> an ExchangeDistributionList.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> Dgoldmanhttp://blogs.msdn.com/dgoldman
> Download OABInteg
> (http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A...)
>
> wrote in message
>
> @r34g2000hsd.googlegroups.com...
>
>
>
> > Hi,
>
> > I have a very simple application written in C#, using CDOEX v. 6.5.7638.1.
> > I instantiate an Addressee object. Then call CheckName on the object. I am
> > then able to trace out the Addressee's properties, so it is getting filled
> > in during CheckName. Then I call GetFreeBusy and it returns a null string.
> > I have tried this when the state should have been most conceivable
> > combinations. All free, all busy, start free end busy, start busy end
> > free, free busy free, etc. I have pasted most of
> > the code below. I removed most of the extra stuff. I am running this on
> > the Exchange 2003 server. This is all the code, so am I missing some
> > initialization? Am I using improper LDAP string? Am I missing a step?
> > Thanks a lot for any suggestions.
>
> > CDO.Addressee iAddr = new CDO.Addressee();
> > iAddr.EmailAddress = txtEmail.Text; // testus...@testdoma.local
> > // LDAP://testdoma.local usename and password are blank, using the current
> > user's credentials
> > bool bResolvedName = iAddr.CheckName("LDAP://" + txtDomain.Text, "", "");
>
> > if (!bResolvedName)
> > {
> > throw new System.Exception("Error occured!");
> > }
>
> > CDO.CdoResolvedStatus status = iAddr.ResolvedStatus;
> > switch (status)
> > {
> > case CDO.CdoResolvedStatus.cdoResolved:
> > {
>
> > DateTime dtStartDate = new DateTime(DateTime.Now.Year,
> > DateTime.Now.Month, DateTime.Now.Day, 9, 30, 00);
> > dtStartDate = dtStartDate.AddDays(1);
> > DateTime dtEndDate = dtStartDate.AddHours(3);
> > int interval = 30;
>
> > // Get the free/busy status in Interval minute
> > // intervals from dtStartDate to dtEndDate.
> > freebusy = iAddr.GetFreeBusy(dtStartDate, dtEndDate, interval, "",
> > "", "", "");
> > }
> > break
> > };- Hide quoted text -
>
> - Show quoted text -
Thanks for the response. I am not using distribution lists. The code
is running on the Exchange server, which in our test environment is
also the domain control. I receive compiler errors when all parameters
are not provided.
s
|
|
| Back to top |
|
 |
|
|
| Related Topics: | OWA Reading Pane (Query string options) Hi, I've been requested to "develop" a WebPart for Share Point 2003 that shows the lists of last messages recieved in an Exchange 2003 Inbox, and open they when Before start typing lines of code, I've been trying to use OWA's querystrin
MAPIInitialize(NULL) used to fail after 10-15 successfully a Hi Everyone, I posted a similer query 10 days back but there was no responce to that. here with i am resending similer query. please help in in resolving this issue. I am facing some issues with MAPI. I am trying to get mailbox information from 2000/2003
HrGetServerDN returns only one value with different sessions Hi, I posted a question regarding not able to fetch mailbox information in case of multiple EVS (Exchange Virtual Server) I was getting only one EVS mailboxs for all other EVS servers. I found that the problem is wrt to HrGetServerDN call.
OMA returns error hello all, Will trying to connect to oma, I have the following error: An unknown error occurred while processing the current request: Message: The remote server returned an error: (400) Bad Request. Source: Stac
DNS test Acceptance of NULL <> sender fails I ran a DNS test from dnsreport.com and got a failure on "Acceptance of NULL <> sender". The message was: ERROR: One or more of your mailservers does not accept mail from "<>". Mailservers are required by RFC1123 5.2.9 to accept mail from "<>". By refusin |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|