Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: 5 May 2005 10:11:14 -0700,    group: microsoft.public.exchange2000.applications        back       


Multiple-step OLE DB operation error when trying to get CalendarMessage   
I am trying to send out a meeting notice from a C# Windows app that is
running on the exchange server of the mailboxes using CDO.  I am new to
CDO and have had little luck getting anything done.  I am trying to
send out update notices to attendees of an existing meeting.  I can
open the meeting, make changes, save changes, everything is fine.  The
trouble comes when I try to create a CalendarMessage to send out the
updates.  I have tried everything that I have found in the groups and
there's nothing else to try.  The server is Win2k Adv Svr SP 4 with
Exchange 2000 SP 3.  I thought their might be something wrong with the
existing meeting I'm opening so I created a new clean one in my test
code:

//Decare
CDO.Appointment app = new CDO.AppointmentClass();
CDO.Configuration cfg = new CDO.ConfigurationClass();
CDO.CalendarMessage msg = new CDO.CalendarMessageClass();

//Set appointment properties
app.StartTime = Convert.ToDateTime("5/5/2005 3:00:00 PM");
app.EndTime = Convert.ToDateTime("5/5/2005 3:30:00 PM");
app.Subject = "Test meeting";

//Add attendee and set properties
CDO.Attendee attendee = app.Attendees.Add("ConferenceRoom@domain.com");
attendee.IsOrganizer = false;
attendee.Role = CDO.CdoAttendeeRoleValues.cdoNonParticipant;

//Set config properties - saw in various posts that these were required
cfg.Fields["cdoSendEmailAddress"].Value = "ConferenceRoom@domain.com";
cfg.Fields["cdoTimeZoneIDURN"].Value = CDO.CdoTimeZoneId.cdoCentral;
app.Configuration = cfg;
app.Configuration.Fields.Update();

//Here is the line that errors.  I have tried all 3 of the following
//methods (one at a time) to get the CalendarMessage object with the
//same result
msg = app.Publish(); //Or
msg = app.CreateRequest(); //Or
msg = app.Invite();

Error text: Multiple-step OLE DB operation generated errors. Check each
OLE DB status value, if available. No work was done.

At the advice of an old post I also verified that the registry setting
of OLEDB_SERVICES for the CLSID of OLE DB is correct.

If anyone has any advice I would very much appreciate the help.  I've
already wasted a day on this.

Thanks,

Greg
date: 5 May 2005 10:11:14 -0700   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us