Excel Application blocks Outlook

Add-in Express™ Support Service
That's what is more important than anything else

Excel Application blocks Outlook
Running Excel AddIn from VS blocks Outlook 
Michael Kaden




Posts: 322
Joined: 2017-11-15
Dear Support,

when I run my Excel AddIn from VS "Start" and want to open Outlook it says cannot open Outlook because the *pst file is in use by another application.

When I then close Excel and VS and want to open Outlook it asks my for confirmation of my MS profile to be used.

If I cancel that, outlook opens normal.

In the Ribbon properties, I have only ExcelWorkbook Ribbons.

Any idea where this behavior comes from.

Thank you fro your help and kind regards

Michael
Posted 16 Aug, 2021 10:14:51 Top
Dmitry Kostochko


Add-in Express team


Posts: 2880
Joined: 2004-04-05
Hello Michael,

Thank you for the detailed description, I have just reproduced the issue but it seems does not relate to Add-in Express based projects. What I did:

- In my Visual Studio 2019, I created an empty ClassLibrary project.
- In the project properties, on the Debug tab, I set the "Start external program" text box to the full path to the Microsoft Excel executable:
C:\Program Files (x86)\Microsoft Office\Root\Office16\Excel.exe
- I built the Class Library project and pressed F5 to start Excel under debugging.
- Then I tried to start Outlook manually and got a similar error, though in my case Outlook complained about my OST file.

So, it seems the issue is caused either by MS Office itself or Visual Studio debugger.
Posted 17 Aug, 2021 03:14:13 Top
Michael Kaden




Posts: 322
Joined: 2017-11-15
Dear Dmitry,

thank you very much for your prompt reply and information.

So at least I know now that there is nothing wrong with my PC or AddIn program.

kind regards

Michael
Posted 17 Aug, 2021 04:20:00 Top
Dmitry Kostochko


Add-in Express team


Posts: 2880
Joined: 2004-04-05
Hello Michael,

You are welcome!
Posted 17 Aug, 2021 05:39:00 Top