03-13-2020 10:29 AM
03-13-2020 10:29 AM
I have the following situation:
I have WinForms-application (used .NET Framework 4.7.2) which is starting Visio and loading a Visio Add-on (a VSL) which is using the VC++ runtime redistributable (14.21.27702). Visio and the VC++ runtime redistributables are installed locally on the Windows 10 system.
The WinForms-application is which is installed via a msix-package (made with InstallShield 2019R3; this msix is used in a sideloading scenario) is starting correctly. However when I start Visio from the WinForms-application Visio is started, but the Visio Add-on (VSL) is loading the following exception occurs:
I have also made an AppV-package of the same WinForms-application and I start Visio from the WinForms-application and loading the Visio Add-on everything is going fine. The AppV-package is installed on the same machine as the Msix-package.
I have had the same issue with the AppV-package when the VC++ redistributable (14.21.27702) was not installed.
Does anyone have suggestions for what I could do?
03-23-2020 03:52 PM
Hi @Thierry1967, how are you launching Visio and the addon? Are either Visio or the addon packaged as an MSIX?
03-24-2020 12:59 AM
Hi @Dian Hartono,
Thank you for your response.
Visio is launched via the Microsoft Office Visio Interop. Example code (C#):
VisioInterop.Application application = new VisioInterop.Application();
The Visio addon is loaded also via the Microsoft Office Visio Interop. Example code (C#):
LoadAddon is an extension method on the Visio application.
The VslFilePath refers to the path where the addon is located and the addon is part of the msix-package. So the WinForms-application including the addon are packaged as a msix-package.
Visio is installed locally on the machine (and is not packaged). I noticed that Visio is started from the WinForms application. However, when loading the Visio addon an exception occurs.
I hope you have an idea what is happening.
05-15-2020 12:57 AM
Hi @Dian Hartono :
Any news on this issue or is this architecture too complex for the MSIX-technology ?
A .NET Framework Winforms Application which is launching Visio and subsequently loading a Visio Addon (VSL) which uses the VC++ runtime redistrutable. Furthermore are the .NET Framework Winforms Application and Visio Addon (VSL) communicating with each other via the WCF technology.
Do I have to include Visio as wel in the MSIX-package in some way?
As earlier mentioned with an AppV-package this is all working...
05-20-2020 02:00 AMSolution
It look's that there has been reported related issue with the same exception:
Office is working with Windows to integrate MSIX In a future release, according