找不到文件或程序集。尝试加载格式不正确的程序

时间:2014-03-10 12:35:00

标签: visual-studio-2010 installation .net-assembly

我有一个包含N个项目和类库项目的.Net Windows应用程序。 他们都在互相参考。

在运行我的设置时,我在安装过程中遇到问题,如下所述:

无法找到文件或程序集“My one Project”。 Version=1.0.0.0Culture=neutralPublicKeyToken=80955c93367666f4或其中一个依赖项。 试图加载格式不正确的程序

Fusion日志的详细错误如下所示: -

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

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  C:\Program Files (x86)\JohnDoe\Foo\Foo.InstallUtil.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = FBFDEV\Anon.User
LOG: DisplayName = Foo.Setup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80955c93367666f4
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/JohnDoe/Foo/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\JohnDoe\Foo\Foo.InstallUtil.exe.Config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/JohnDoe/Foo/Foo.Setup.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\JohnDoe\Foo\Foo.Setup.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: Foo.Setup, Version=2.0.0.0, Culture=neutral, PublicKeyToken=80955c93367666f4
WRN: Comparing the assembly name resulted in the mismatch: Major Version
ERR: The assembly reference did not match the assembly definition found.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

0 个答案:

没有答案