J
Jens Vestergaard
Hi N
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 resolve
The date/time format is correc
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 minut
// intervals from dtStartDate to dtEndDate
switch( iAddr.ResolvedStatus )
case CDO.CdoResolvedStatus.cdoAmbiguous
return "User ambiguous"
case CDO.CdoResolvedStatus.cdoResolved: //Calling GetFreeBus
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: -107328306
Does anyone have any idea of what this can be
Best regard
- 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 resolve
The date/time format is correc
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 minut
// intervals from dtStartDate to dtEndDate
switch( iAddr.ResolvedStatus )
case CDO.CdoResolvedStatus.cdoAmbiguous
return "User ambiguous"
case CDO.CdoResolvedStatus.cdoResolved: //Calling GetFreeBus
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: -107328306
Does anyone have any idea of what this can be
Best regard
- Jens