Excel Client Stopped Working

Issue

Exceptionally this can happen to customers but more often it happens during development.

When trying to use the IoC container, the Excel Client stops working and it is not possible to find a working revision – older working versions also stop working, for the same reason. There is an error during registering or loading of the addon (PFX EC). This error happens just once, the next time it is a different one – caused by disabled loading. Excel disables the execution or loading of specific addons based on certain heuristics.

Deleting and pulling the repository again does not help. Excel Client will start working well on new repositories in a different disk location.

Solution

  1. Open Excel and go to File > Options > Add-ins.

    Screenshot 2020-05-12 at 1.47.04 PM.png


    Here you can see the disabled Pricefx ExcelClient COM Add-in.

  2. At the bottom of this dialog go to Manage > Disabled Items.

    Screenshot 2020-05-12 at 1.48.06 PM.png


  3. Enable Pricefx ExcelClient addon.

Technical Details

Excel will show you:

Screenshot 2020-05-12 at 2.48.38 PM.png

When you click the Debug button:

Screenshot 2020-05-12 at 2.49.06 PM.png

In Visual Studio, you cannot see any exception, even if you enable stop on all exceptions. But you can include ExcelDna.Integration project to your solution and run it again. Then you can see the following error while invoking a COM object. Here is ExcelDna part of the solution:

Screenshot 2020-05-12 at 2.51.57 PM.png

COMException: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

Screenshot 2020-05-12 at 2.53.33 PM.png