0
Answer

Outlook 2003 login problem through windows service

Ask a question
partyanimal

partyanimal

18y
1.9k
1
Hi All,

I have developed a windows service with C# & VS.NET 2003 that login in the outlook 2003 using the provided credentials. the Windows service sychronizes all custom made public folders under "All Public Folders" tab and their respective data with a ERP system running on Linux plateform machine in Denmark somewhere. (It internally uses webservices for this communication of data). It is depolyed using the "Local system user" profile settings in the .NET installer . It by default run the process thread "OUTLOOK.EXE" in the background without showing the interface of outlook using this line of code:

Outlook._Application outlookApplication = new Outlook.ApplicationClass();

and perform sign in activity and performs my desired activities. and sleeps for 2 minutes and then trigger that synchronization process again after every 2 min.

during windows service doing its desired job , whenever i run the outlook from my desktop short cut or whatever method then first cycle is compeleted successfully but the next triggered cycle after 2 minutes by windows service fails to perform to login or due to any error it failed to perform the desired task (i have logged every single activity setps performed in my log file)....

I just don't understand why it is sooo.. My findings are following

1. Windows service perform login activity every time it initiates outlook application object & its respective process "OUTLOOK.EXE" and whenever it finds it running already then it fails to do so.

I just wanaa know if there is any other reasons for this behaviour if yes the plzzzz let let me know that and its solution... its urgent..

Thanx in advance