467,122 Members | 1,256 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

Windows Service problem with Outlook

Hi All,

I have created a simple Windows Service which needs to be
able to send appointments to Outlook.
I have no problem makeing a reference to Microsoft
Outlook 11.0 Object Library and compiling the code. the
problem arises when I try to install the service using

The error message I get is the following

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: Fiel or assembly name
Outlook, or one of its dependencies, was not found..

Any ideas anyone...please help !!!!

Here is the code.....
Microsoft.Office.Interop.Outlook.Application oApp = new
Microsoft.Office.Interop.Outlook.NameSpace oNS =

if (password == "")
oNS.Logon(profile, Missing.Value, false, true);
oNS.Logon(profile, password, false, true);

Microsoft.Office.Interop.Outlook.AppointmentItem oAppt =
(Microsoft.Office.Interop.Outlook.OlItemType.olApp ointment
oAppt.Subject = subject;
oAppt.Body = content;
oAppt.Location = location;
oAppt.Start = startTime;
oAppt.End = endTime;

oAppt.ReminderSet = true;
oAppt.ReminderMinutesBeforeStart = 5;
oAppt.BusyStatus =
Microsoft.Office.Interop.Outlook.OlBusyStatus.olBu sy ; //
oAppt.IsOnlineMeeting = false;


oApp = null;
oNS = null;
oAppt = null;
Nov 16 '05 #1
  • viewed: 1634

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by W Akthar | last post: by
2 posts views Thread by Dima Protchenko | last post: by
3 posts views Thread by THNQDigital | last post: by
9 posts views Thread by Phil G. | last post: by
3 posts views Thread by sokolo@gmail.com | last post: by
6 posts views Thread by AMP | last post: by
reply views Thread by piotrperak@poczta.onet.pl | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.