Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Adding an Appointment in ASP


Message #1 by "Christian Thiele" <c.thiele@e...> on Thu, 25 Apr 2002 09:26:09
Hi,

i have a problem with adding a appointment in ASP, okay that works fine but
when i try to use appt.CreateRequest the following error occurs:

Multiple-step OLE DB operation generated errors. Check each OLE DB status
value...

<snip>

Dim Info
Set Info   = CreateObject("ADSystemInfo")
Dim iPer
Set iPer   = CreateObject("CDO.Person")
Dim Config
Set Config  = CreateObject("CDO.Configuration")
Dim iMBX
iPer.DataSource.Open "mailto:user@d..."
Set iMBX = iPer.GetInterface("IMailbox")
Set objAppt=CreateObject("CDO.Appointment")
Set Conn=CreateObject("ADODB.Connection")
Conn.Provider="ExOLEDB.Datasource"

Config.Fields("cdoMailboxURL") = iMbx.BaseFolder
Config.Fields("CalendarLocation") = iMbx.Calendar
Config.Fields("cdoSendUsingMethod") = 3
Config.Fields("cdoSendEmailAddress") = "user@d..."
Config.Fields.Update

With objAppt
   .Configuration = Config
   .StartTime = "05/05/2002 2:00:00 PM"
   .EndTime = "05/05/2002 3:00:00 PM"
   .Subject = "Meet me- in St. Louis"
   .Location = "St. Louis"
   .TextBody = "I left my heart in San Francisco, so I may be late."

   Conn.Open iMBX.BaseFolder
   .DataSource.SaveToContainer iMBX.Calendar, Conn

end with

objAppt.Attendees.Add("user2@d...")

Set CMessage = objAppt.CreateRequest '<< FAILS with error

</snip>

I am using Windows 2000, AD and Exchange 2000 SP2

Whats wrong with that??? I worked on that for 2 days...nothing happened, 
still the same error...

Which solution would be better than my one, maybe WebDAV & XML ??

!!Please help me!!

Bye
Christian

  Return to Index