I have a problem with my project. My project had a target framework 4.5.1 and everything worked fine. I changed my project's target framework to 3.5 and got problems.
Firstly I had to change some code (ex. Task
replace with Thread
, etc.)
When there was no more errors I decided to build a project and build was successed. When I try to run my project I got error:
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.`
When I change to taget framework v4.5 everything works. But not when target framework is set to v3.5. I checked every reference of this project and all of them are targeting framework 3.5 or less.
I used this TOOL Logs says something like this:
(...) 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. (...)
I also tried to clean and rebuild solution but didn't help. But as I said there are no errors on error list, build is completed successfully. This error occurs when I try to run project.
EDIT: Full list of project's references:
fuslogvw trace path:
* 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.
I solved my problem by creating a new project with .net framework v3.5 instead of changing target framework on existing project.
Everything works now.
User contributions licensed under CC BY-SA 3.0