Note that there are some explanatory texts on larger screens.

plurals
  1. POOutlook 2007 plugin failing to load (incorrect runtime)
    primarykey
    data
    text
    <p>I have created an Outlook 2007 plugin which I have managed to install on Windows 7 using a setup project in Visual Studio 2010. It has worked fine on every Windows 7 machine I have installed it on. I had previously installed it successfully on two XP machines as well but I am having problems with one XP instance which is on a virtual machine.</p> <p>AddInSpy shows that this addin failed to be loaded by Outlook because it couldn't load one of it's dependencies:</p> <pre><code>Add-in DLL path is not found. System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files\blah\blah\MyAddIn.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. </code></pre> <p>I build a stripped down Addin which simply pops up a message box saying it started so that I new it wasn't any of the other dependencies my plugin relies on, and I get the same error message.</p> <p>i suspect the 'This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.' Is the culprit, as later in the error log produced by AddInSpy i get:</p> <pre><code>Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll ... Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config </code></pre> <p>I have installed .NET 4 client profile (which the plugin is built to use) and extended on this machine and yet according to the logs it is trying to use .NET 2. I've also installed VSTO2010 runtime and the Office 2007 Primary Interop Assemblies.</p> <p>So i guess my questions are: Why is it trying to use .NET2? how do i make it use .NET4? and how can I ensure my installer makes it use the correct version?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload