Create Outlook appointment via C# .Net -


i need create outlook appointment using microsoft.office.interop.outlook, while can work locally on own workstation , works if run web application via server's browser, not work when connect server externally.

hence, think might permission issue.

i changed application pool identity "localsystem" don't access denied error. unfortunately, doesn't work.

the app behaves if appointment created, appointment doesn't appear in outlook.

here include file on top of aspx.cs page

using outlook = microsoft.office.interop.outlook; 

here code using pop appointment.

outlook.application apptapp = new outlook.application(); outlook.appointmentitem appt =        apptapp.createitem(outlook.olitemtype.olappointmentitem) outlook.appointmentitem; appt.subject = txtfirstname.text + " " + txtlastname.text; appt.body = txtcomment.text; appt.alldayevent = false; appt.start = datetime.parse(txtreminderdate.text + " 8:00 am"); appt.end = datetime.parse(txtreminderdate.text + " 9:00 am"); appt.display(false); 

as said works if use localhost on server, if try access app externally via machine nothing.

i did install outlook 2003 on server access interop.outlook file , added reference microsoft.office.core.

any appreciated, thanks!

no office app (outlook included) can used in service.

your options are

  1. in case of exchange server, use ews access mailbox.

  2. extended mapi (c++ or delphi only)

  3. redemption (any language) - wraps extended mapi , rdo family of objects can used service.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

ios - Swift Array Resetting Itself -