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
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