Code: Select all
System.IO.FileLoadException was unhandled by user code
HResult=-2146234304
Message=Could not load file or assembly 'System.Reactive.Interfaces, Version=2.1.30214.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source=Recon
FileName=System.Reactive.Interfaces, Version=2.1.30214.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35I don't know why it is trying to load version 2.1.30214.0 as my project is configured to use version 2.2.2. When I launch the Add-In from the Visual Studio Debugger, the code works. When I run Outlook after installing the Add-In with our existing Click-Once installer, the code works. It just doesn't work when the Add-In is installed from the installer created using Advanced Installer.
The code in question is the following line:
Code: Select all
WampSharp.DefaultWampChannelFactory channelFactory = new WampSharp.DefaultWampChannelFactory();I am not sure if it matters, but this code is executed from a background worker thread through the following execution chain:
Code: Select all
System.ComponentModel.BackgroundWorker backgroundWorker = new System.ComponentModel.BackgroundWorker();
backgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bw_DoWork);
backgroundWorker.RunWorkerAsync();
--> bw_DoWork()
----> WampSharp.DefaultWampChannelFactory channelFactory = new WampSharp.DefaultWampChannelFactory();Why would the code work when installed using Click-Once but not when installed using Advanced Installer? What other details can I provide that will help identify the problem?
Kind Regards,
Joy Peterson
FOLLOW US
Get the latest news in Application Packaging