Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Outlook 2003 login problem through windows service
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
partyanimal
18y
1.9k
1
Reply
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
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
C#/Excel custom functions how to hide GetHashCode, ToString, GetType and Equals
Merging Of Com Interop Assemblies into Single Assembly (single dll)