VSTO and Slow Excel Shutdown RRS feed

  • Question

  • Hello

    I am building an Excel add-in using VSTO. It consists of a WPF control docked inside an Excel Actions pane. The WPF control is housed inside a Winforms ElementHost. The add-in is built using Visual Studio 2013 Update 4 and Excel 2013 and running on Windows 8.1

    What I am finding is when Excel is shutdown, it takes around 20-30 seconds for the application to close. I have experimented with taking the WPF control out and have found it does not suffer from the slow shut down but I can't be 100% certain this is the cause. I was wondering if anyone else has experienced this problem?



    Thursday, March 19, 2015 4:05 AM


All replies

  • Hello Michael,

    First, take a look at the VSTO Runtime Update to Address Slow Shutdown on .NET Framework 4.5.2 article. Make sure that you use the VSTO Runtime version 10.0.50701 .

    Second, the issue had been fixed earlier in the update to the VSTO Runtime, released on April 10, 2014. You can download the latest runtime from, or see the full blog post at for more information (including instructions on how to pre-req the runtime using a Bootstrapper package). See Word Slow Shutdown on Windows 8 when Using WPF in Application AddIn for more information.

    BTW You may find the Improving the Performance of an Application-Level Add-in article helpful.

    Thursday, March 19, 2015 2:28 PM
  • Hi

    I know is an old post. But I'm having the same issue on Excel and cannot find any fix for the issue.

    I've installed the new .NET Framework 4.7.2 and as well the new VSTO (10.0.60825) runtime

    Very appreciated if anyone can help resolve this issue and we have about 50 users have this issue when closing Excel with the VSTO adding using the CustomTaskPane.


    • Edited by Dave.Le Thursday, May 3, 2018 4:39 AM
    Thursday, May 3, 2018 4:15 AM

  • Did you ever get to the bottom of this issue as we are experiencing the same results and it's driving me up the wall that there doesn't seem to be a solution.   I read that fixes were previously made to VSTO or that you can disable "HD-compliant touch screen", but none of these seems to work on the Surface Pro 4 and the problem persists.

    We have a VSTO AddIn that uses a lot of WPF and it always takes around 30 seconds for Word to close down if any of these windows have been shown.  If no WPF window is shown then Word shutdown is a bout 3 or 4 seconds.

    Even stranger is that all works fine on a VM, unless you connect to that VM from the Surface Pro 4 and then the problems presents itself again.  God only knows why attaching to an VM through RDP should ten exhibit the same results.  Connecting to the same VM through RDP from a non Surface Pro and the problems not there!

    @Microsoft - Any advice here as this really needs fixing!



    Tuesday, October 9, 2018 9:40 AM