预计该模块将包含程序集清单 (hr = 0x80131018)
It was expected that the module will contain the assembly manifest (hr = 0x80131018)
我的项目有问题。我的项目有一个目标框架 4.5.1,一切正常。我将项目的目标框架更改为 3.5,但遇到了问题。
首先我必须更改一些代码(例如 Task
替换为 Thread
,等等)
当没有更多错误时,我决定构建一个项目并构建成功。当我尝试 运行 我的项目时出现错误:
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.`
当我更改为 taget 框架 v4.5 时,一切正常。但不是当目标框架设置为 v3.5 时。我检查了这个项目的每个参考资料,它们都针对框架 3.5 或更低版本。
我用过这个 TOOL 日志是这样说的:
(...)
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.
(...)
我也尝试清理和重建解决方案但没有帮助。但正如我所说,错误列表中没有错误,构建已成功完成。当我尝试 运行 project.
时出现此错误
编辑:
项目参考的完整列表:
fuslogvw 跟踪路径:
* 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.
编辑2:
ildasm.exe 的清单文件:
我通过使用 .net Framework v3.5 创建一个新项目而不是更改现有项目的目标框架来解决我的问题。
现在一切正常。
我的项目有问题。我的项目有一个目标框架 4.5.1,一切正常。我将项目的目标框架更改为 3.5,但遇到了问题。
首先我必须更改一些代码(例如 Task
替换为 Thread
,等等)
当没有更多错误时,我决定构建一个项目并构建成功。当我尝试 运行 我的项目时出现错误:
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.`
当我更改为 taget 框架 v4.5 时,一切正常。但不是当目标框架设置为 v3.5 时。我检查了这个项目的每个参考资料,它们都针对框架 3.5 或更低版本。
我用过这个 TOOL 日志是这样说的:
(...) 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. (...)
我也尝试清理和重建解决方案但没有帮助。但正如我所说,错误列表中没有错误,构建已成功完成。当我尝试 运行 project.
时出现此错误编辑:
项目参考的完整列表:
fuslogvw 跟踪路径:
* 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.
编辑2:
ildasm.exe 的清单文件:
我通过使用 .net Framework v3.5 创建一个新项目而不是更改现有项目的目标框架来解决我的问题。
现在一切正常。