2016-08-01 341 views
0

Ich habe ein Problem mit meinem Projekt. Mein Projekt hatte einen Zielrahmen 4.5.1 und alles hat gut funktioniert. Ich habe das Zielframework meines Projekts auf 3.5 geändert und Probleme bekommen.Es wurde erwartet, dass das Modul das Assemblymanifest enthält (hr = 0x80131018)

Erstens hatte ich einige Code zu ändern (ex. Task mit Thread ersetzen, etc.) Wenn es keine Fehler mehr war ich successed ein Projekt und bauen zu bauen. Wenn ich versuche, mein Projekt zu laufen habe ich Fehler:

Error while trying to run project. You can not load file or assembly or one of its dependencies. It was expected that the module will contain the assembly manifest.`

Wenn ich Rahmen Tåget ändern funktioniert alles V4.5. Aber nicht, wenn das Zielframework auf v3.5 eingestellt ist. Ich habe jede Referenz dieses Projekts überprüft und alle zielen auf Framework 3.5 oder weniger.

ich verwendet, um dieses TOOL Logs so etwas wie dieses sagt:

(...) The result links: hr = 0x80131018. There is no description available. Manager set loaded from C: \ Windows \ Microsoft.NET \ Framework64 \ v2.0.50727 \ mscorwks.dll (...) ERROR: error while extracting the import manifest file (hr = 0x80131018). ERROR: Could not complete installation kit (hr = 0x80131018). Probing completed. (...)

Ich versuchte auch Lösung zu reinigen und wieder aufzubauen, aber nicht helfen. Aber wie gesagt, es gibt keine Fehler in der Fehlerliste, Build ist erfolgreich abgeschlossen. Dieser Fehler tritt auf, wenn ich versuche, ein Projekt auszuführen.

EDIT: Liste der Referenzen des Projekts: Full list of project's references

fuslogvw Spur Pfad:

* Assembly Binder Log Entry (2016-08-01 @ 13:42:46) *

The operation failed. Bind result: hr = 0x80131018. No description available.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll Running under executable C:\svn_repos\szynaka\KlasyElem\Build całości\Kiosk_net35.vshost.exe --- A detailed error log follows.

=== Pre-bind state information ===

LOG: User = Paweł-PC\Paweł

LOG: DisplayName = Kiosk_net35 (Partial)

LOG: Appbase = file:///C:/svn_repos/szynaka/KlasyElem/Build całości/

LOG: Initial PrivatePath = NULL

LOG: Dynamic Base = NULL LOG: Cache Base = NULL

LOG: AppName = NULL Calling assembly : Microsoft.VisualStudio.HostingProcess.Utilities, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

===

LOG: This bind starts in default load context. LOG: Using application configuration file: C:\svn_repos\szynaka\KlasyElem\Build całości\Kiosk_net35.vshost.exe.Config

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\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:/svn_repos/szynaka/KlasyElem/Build całości/Kiosk_net35.DLL.

LOG: Attempting download of new URL file:///C:/svn_repos/szynaka/KlasyElem/Build całości/Kiosk_net35/Kiosk_net35.DLL.

LOG: Attempting download of new URL file:///C:/svn_repos/szynaka/KlasyElem/Build całości/Kiosk_net35.EXE.

LOG: Assembly download was successful. nAttempting setup of file: C:\svn_repos\szynaka\KlasyElem\Build całości\Kiosk_net35.exe LOG: Entering run-from-source setup phase.

ERR: Error extracting manifest import from file (hr = 0x80131018).

ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

EDIT2: Manifest-Datei mit ildasm.exe: Manifest file with ildasm.exe

+0

Können Sie die Liste der Referenzen Ihres Projekts anzeigen? –

+0

Es scheint Ihnen nicht gelungen zu sein, * alle * der von Ihnen verwendeten Baugruppen neu auszurichten. Wir könnten mehr erzählen, wenn Sie die gesamte Fuslogvw-Spur anstatt nur diesen kleinen Teil davon gepostet hätten. –

+0

Ich bearbeitete einen Beitrag und fügte eine vollständige Liste der Referenzen des Projekts und einen fuslogvw-Trace – XardasLord

Antwort

0

I gelöst mein Problem, indem ich ein neues Projekt mit .net framework v3.5 inste Anzeige eines sich ändernden Ziel-Frameworks für ein bestehendes Projekt.

Alles funktioniert jetzt.