Hi,
I am working on a migration project. The old code was written VB.Net (.Net F/w 1.1). It is a Windows Service Application.
The purpose of the code in side the Windows Service App is to get an MAPI session using the code, so that we can read mails from the outlook using object cdoSession:
Dim
cdoSession As MAPI.Session = New MAPI.Session
cdoSession.Logon("epm_admin",
"Start123", True, True)
Return cdoSession
This code was working while the Outlook version was 2007 and .net version was 1.1. and the code was called from an Windows Service for reading mails from outlook in a certain interval.
Now after migration , the server is Windows Server 2008 R2, .net f/w is 4.5 and Outlook is 2013. getting an error ([Collaboration
Data Objects - [MAPI_E_UNKNOWN_FLAGS(80040106)])while encountering the code line:
cdoSession.Logon("epm_admin", "Start123", True, True) and the code is running as a Windows Service.
[THE SAME CODE IS WORKING FINE IF IT IS RUN WITH WINDOWS FORM APP)
PLEASE HELP SO THAT IT WILL RUN FROM WINDOWS SERVICE.