Search code examples
c#sharepointdependenciesinstallationsharepoint-2016

How to debug a service application and check which dependency is missing from application


enter image description here

I am trying to debug a service application and when I run setup project I get the above error when installing the project. How do I determine which dependency is missing in visual studio??

I have no Build errors. Build is successfully.


Solution

  • That's not a missing dependency message. There are two reasons for this:

    1. A cross architecture call, 32/64 bit as NicoRiff says. Somewhjere in the calling sequence of managed code (probably a custom action) there is a cross-bitness call.

    2. A NET 2.0 assembly has been loaded into the NET 4.0 runtime and won't run. That's the same issue as here:

    BadImageFormatException when trying to install msi