CDO from WebService

J

Jens Vestergaard

Hi NG

I'm currently working on a FreeBusy ("outlook property") project, and have
come across an error message that I cannot decode.

Pre-info:
Im certain of following:
The user I want to "investigate" is known and resolved
The date/time format is correct

my code (taken from a Microsoft example):
[WebMethod]
public string GetFreeBusyString( string strUserUPN, DateTime
dtStartDate, DateTime dtEndDate, int Interval ) {
ActiveDs.ADSystemInfo Info = new ActiveDs.ADSystemInfo();
try {
// Variables.
CDO.Addressee iAddr = new CDO.Addressee();
//string freebusy;

iAddr.EmailAddress = strUserUPN;
if ( !( iAddr.CheckName( "LDAP://" + Info.DomainDNSName, "",
"" ) ) ) {
throw new Exception( "Error occured: Unable to check name" );
}

// Get the free/busy status in Interval minute
// intervals from dtStartDate to dtEndDate.
switch( iAddr.ResolvedStatus ) {
case CDO.CdoResolvedStatus.cdoAmbiguous:
return "User ambiguous";
case CDO.CdoResolvedStatus.cdoResolved: //Calling GetFreeBusy
try {
return iAddr.GetFreeBusy( dtStartDate, dtEndDate, Interval,
"", "", "", "" );
} catch( System.Runtime.InteropServices.COMException err ) {
return "Exception caught(code): " + err.ErrorCode;
}
case CDO.CdoResolvedStatus.cdoUnresolved:
return "User unresolved";
default:
return "Error checking ResolvedStatus for user";
}
} catch( System.Runtime.InteropServices.COMException err ) {
return err.Message + " " + err.StackTrace + " " +
err.GetType().FullName + " " + Info.DomainDNSName + " " + err.ErrorCode;
}
}

The error:
Unknown error in CDO.Addressee.GetFreeBusy(...)
Code: -1073283067

Does anyone have any idea of what this can be ?
Best regards
- Jens
 
S

Sue Mosher [MVP-Outlook]

You might want to post in the microsoft.public.exchange.applications
newsgroup, which covers Exchange programming, including this flavor of CDO.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top