CDO from WebService

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top