TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
partyanimal
NA
1
0
Outlook 2003 login problem through windows service
Apr 14 2006 3:19 AM
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
Reply
Answers (
0
)
C#/Excel custom functions how to hide GetHashCode, ToString, GetType and Equals
Merging Of Com Interop Assemblies into Single Assembly (single dll)