Home > Net >  Click once deployment MS outlook addoin getting issue System.BadImageFormatException
Click once deployment MS outlook addoin getting issue System.BadImageFormatException

Time:12-06

I have built outlook add-in using Visual studio 2015 Professional Addition. And used Click once deployment to push to ftp location so that it can be auto updated when ever version change happens. It was working fine from past 3 years.

Now I am using Visual Studio 2015 community addition to do some changes and when I am trying to push changes I am getting error as

System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

I am using SQLlIte interop service and SQLLite3 database now it is not able to use that service.

Thanks in advance for the help

project build settings

CodePudding user response:

It seems you are trying to load a 32 bit dll into a 64 bit process (or the other way around). You may find the following similar threads helpful:

Make sure that your add-in dependencies support x64 and x86 platforms. Remember that you can't load and run x86 assemblies in the x64 process (or x64 assemblies into x86 process).

CodePudding user response:

Initial build that was using 32 bit sql lite dll file.

Now I try to download and copy latest 64 and 86 SQLite.Interop.dll files into respective folders now it is working dll reference link

https://www.nuget.org/packages/SQLite.Interop/
  • Related