无法加载文件或程序集xxx或其依赖项之一。尝试加载格式不正确的程序

时间:2016-03-23 09:14:19

标签: asp.net visual-studio

我检查了所有类似的问题,但没有解决方案适用于我: 我将我的Web应用程序构建属性设置为:所有配置的任何CPU。 (我也尝试了所有组合) - 这就是解决类似问题的问题。

同样在应用程序池中,我将32位应用程序设置为TRUE。 我在IIS 7.5上运行我的网站

我的Web应用程序是没有错误的构建,但是当我运行它时,我从日志中得到以下错误:

*** Assembly Binder Log Entry  (23.3.2016 @ 9:51:19) ***

The operation failed.
Bind result: hr = 0x8007000b. An attempt was made to load a program with an     incorrect format.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\WINDOWS\SysWOW64\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = SM.EORD.Web
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: SM.EORD.Web | Domain ID: 3
WRN: A partial bind occurs when only part of the assembly display name is   provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the   assembly,
WRN: that consists of the simple name, version, culture, and public key  token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase =   file:///D:/Documents/Projekti/TFSProd/eOrdering/Main/Source/SM.EORD/SM.EORD.Web/
LOG: Initial PrivatePath =   D:\Documents\Projekti\TFSProd\eOrdering\Main\Source\SM.EORD\SM.EORD.Web\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary    ASP.NET Files\eorddev\883938bb
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary   ASP.NET Files\eorddev\883938bb
LOG: AppName = ad349442
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:   D:\Documents\Projekti\TFSProd\eOrdering\Main\Source\SM.EORD\SM.EORD.Web\web.conf ig
LOG: Using host configuration file:   C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config
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:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET   Files/eorddev/883938bb/ad349442/SM.EORD.Web.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/eorddev/883938bb/ad349442/SM.EORD.Web/SM.EORD.Web.DLL.
LOG: Attempting download of new URL file:///D:/Documents/Projekti/TFSProd/eOrdering/Main/Source/SM.EORD/SM.EORD.Web/bin/SM.EORD.Web.DLL.
LOG: Assembly download was successful. Attempting setup of file: D:\Documents\Projekti\TFSProd\eOrdering\Main\Source\SM.EORD\SM.EORD.Web\bin\SM.EORD.Web.dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: SM.EORD.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
ERR: Invalid assembly platform or ContentType in file (hr = 0x8007000b).
ERR: Setup failed with hr = 0x8007000b.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

*** Assembly Binder Log Entry  (23.3.2016 @ 9:51:19) ***

The operation failed.
Bind result: hr = 0x8007000b. An attempt was made to load a program with an incorrect format.

Assembly manager loaded from:   C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\WINDOWS\SysWOW64\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = SM.EORD.Web
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: SM.EORD.Web | Domain ID: 3
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///D:/Documents/Projekti/TFSProd/eOrdering/Main/Source/SM.EORD/SM.EORD.Web/
LOG: Initial PrivatePath = D:\Documents\Projekti\TFSProd\eOrdering\Main\Source\SM.EORD\SM.EORD.Web\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eorddev\883938bb
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary  ASP.NET Files\eorddev\883938bb
LOG: AppName = ad349442
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:   D:\Documents\Projekti\TFSProd\eOrdering\Main\Source\SM.EORD\SM.EORD.Web\web.config
LOG: Using host configuration file:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config
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:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET   Files/eorddev/883938bb/ad349442/SM.EORD.Web.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/eorddev/883938bb/ad349442/SM.EORD.Web/SM.EORD.Web.DLL.
LOG: Attempting download of new URL file:///D:/Documents/Projekti/TFSProd/eOrdering/Main/Source/SM.EORD/SM.EORD.Web/bin/SM.EORD.Web.DLL.
LOG: Assembly download was successful. Attempting setup of file: D:\Documents\Projekti\TFSProd\eOrdering\Main\Source\SM.EORD\SM.EORD.Web\bin\SM.EORD.Web.dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: SM.EORD.Web, Version=1.0.0.0, Culture=neutral,  PublicKeyToken=null
ERR: Invalid assembly platform or ContentType in file (hr = 0x8007000b).
ERR: Setup failed with hr = 0x8007000b.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

有什么想法吗?

br,西蒙

0 个答案:

没有答案