System.IO.FileNotFoundException: Datei oder Assembly 'X' oder eine ihrer Abhängigkeiten konnte beim Bereitstellen der Anwendung nicht geladen werden

Ich habe ein seltsames Problem beim Bereitstellen einer Anwendung, die auf eine Assembly verweist, die in verwaltetem C ++ geschrieben ist.

Ich habe eine Assembly X erstellt, diese kompiliert und in einer exe-Datei namens Starter referenziert.

Starter.exe startet normalerweise auf der lokalen Maschine. Wenn ich jedoch ALLE Inhalte des Starter-Debug-Ordners auf eine virtuelle Maschine kopiere und versuche, sie dort zu starten, stürzt sie mit der folgenden Ausnahme ab:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or 
assembly 'X' or one of its dependencies. The specified module could not be found.

Das macht für mich keinen Sinn, da X sich direkt im selben Ordner wie Starter.exe befindet.

Was könnte dieses Problem verursachen?

AKTUALISIEREN

Ich habe die Abhängigkeiten in Reflector auf dem Zielcomputer untersucht, und es konnten Dateien für all diese gefunden werden.

Ich habe auch die Konfigurationen für alle Projekte auf x86 / win32 geändert.

AKTUALISIEREN

Hier sind die Protokolle von Fusion Log (Speicherort: C: \ FusionLog \ Default \ Starter.exe \ X, Version = 1.0.4538.22813, Culture = neutral, PublicKeyToken = null.HTM):

*** Assembly Binder Log Entry  (6/4/2012 @ 1:56:13 PM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Documents and Settings\Administrator\Desktop\tmp\k;k\Starter.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = MENKAUR-7683827\Administrator
LOG: DisplayName = X, Version=1.0.4538.22813, Culture=neutral, PublicKeyToken=null
 (Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/Administrator/Desktop/tmp/k;k/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = Starter.exe
Calling assembly : Starter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and Settings\Administrator\Desktop\tmp\k;k\Starter.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/Desktop/tmp/k;k/X.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Documents and Settings\Administrator\Desktop\tmp\k;k\X.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: X, Version=1.0.4538.22813, Culture=neutral, PublicKeyToken=null
LOG: Binding succeeds. Returns assembly from C:\Documents and Settings\Administrator\Desktop\tmp\k;k\X.dll.
LOG: Assembly is loaded in default load context.

Die einzigen Fehler befinden sich im Verzeichnis C: \ FusionLog \ NativeImage \ Starter.exe \:

*** Assembly Binder Log Entry  (6/4/2012 @ 1:56:13 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Documents and Settings\Administrator\Desktop\tmp\k;k\Starter.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = MENKAUR-7683827\Administrator
LOG: DisplayName = BookmarkWiz.Kernel, Version=1.0.4538.22813, Culture=neutral, PublicKeyToken=null
 (Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/Administrator/Desktop/tmp/k;k/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = Starter.exe
Calling assembly : Starter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: Start binding of native image X, Version=1.0.4538.22813, Culture=neutral, PublicKeyToken=null.
WRN: No matching native image found.
LOG: IL assembly loaded from C:\Documents and Settings\Administrator\Desktop\tmp\k;k\X.dll.

Ich kann die Assembly nicht signieren, da sie auf mehrere andere Assemblys verweist, die nicht signiert sind

Antworten auf die Frage(3)

Ihre Antwort auf die Frage