Unable to open .msg file using console application

Dona Maria 6 Reputation points
2022-01-25T12:51:49.813+00:00

168264-screenshot-2022-01-25-180400.png168180-screenshot-2022-01-25-180409.png

Hi,
We have developed a console application to open msg files in outlook using c#.
The application is working fine while trying to open the file for the first time, that is when all the instances
of outlook is stopped.
The console application also works perfectly if outlook is already running in the background.
But if we have closed the outlook once and if the console application is triggered again
the mail item is not getting opened. Please suggest a solution.

Community Center Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.