Domanda

inserisco questo solo come riferimento per altri che potrebbero finire per essere nella stessa situazione e dato che ho trascorso quasi 3 giorni cercando di capire la causa principale del problema, ho pensato che sarebbe una buona idea per inviare la soluzione qui.

La mia situazione era la seguente: Ho cercato di creare un pacchetto di distribuzione per un'applicazione .NET e TypeLoadExceptions ottenuto, FileNotFoundExceptions (per quanto riguarda le DLL), Side-by-Side errori di configurazione, ecc una volta ho provato a farlo funzionare su una macchina di prova di vaniglia.

[modifica]: StackOverflow non mi permette di rispondere alla mia domanda entro 8 ore di esso di essere pubblicati, la risposta segue in ~ 8 ore;)

È stato utile?

Soluzione

The problem was that one of the dependency projects of my application was set to "Debug" build in the Visual Studio configuration manager, therefore the debug dll of the dependency ended up being used for release builds as well. On any development machine this was no problem after all since all debug runtimes were available.

On the vanilla test machine however only the release runtimes were present which caused so much trouble to me and gave me unmeaning exceptions that lead me to so many wrong directions via google, etc.

In my case it was SlimDX that was set to build a debug build in the VS configuration manager, even when doing release builds. Since SlimDX makes use of the VC runtimes I got the above problem, but this could happen with any .net assembly that uses the VC runtimes.

I hope this will eventually safe someone some hours ;)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top