Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 加载共享类库时出错_Asp.net_.net_Wpf_Compilation_Compiler Errors - Fatal编程技术网

Asp.net 加载共享类库时出错

Asp.net 加载共享类库时出错,asp.net,.net,wpf,compilation,compiler-errors,Asp.net,.net,Wpf,Compilation,Compiler Errors,我有一个ASP.NET站点/WPF/Windows phone应用程序,它们都使用三个链接的项目。在数据项目(Myproject.DAL)中,我使用了对System.data.SQLite和ICSharpCode.SharpZipLib的引用。后者似乎是针对VS中的运行时版本2.0编译的,尽管我下载了4.0版本(可能是我的误解) 尝试加载ASP.NET 4站点时,出现错误: Could not load file or assembly 'ChickenPing.DAL' or one of

我有一个ASP.NET站点/WPF/Windows phone应用程序,它们都使用三个链接的项目。在数据项目(Myproject.DAL)中,我使用了对
System.data.SQLite
ICSharpCode.SharpZipLib
的引用。后者似乎是针对VS中的运行时版本2.0编译的,尽管我下载了4.0版本(可能是我的误解)

尝试加载ASP.NET 4站点时,出现错误:

Could not load file or assembly 'ChickenPing.DAL' or one of its dependencies. An attempt was made to load a program with an incorrect format.
我记得以前有过这个问题,它是由System.Data.SQLite库引起的,它是一个x86二进制文件。我已经更新了,这绝对不是原因。所有项目都设置为以.NET 4 x86运行。我有没有办法找到这件事的真正原因?我猜DLL肯定在某个地方有问题,但MSBuild似乎没有报告任何问题

尽管启用了Fusion日志记录,但我得到的唯一隐秘错误是:

=== Pre-bind state information ===
LOG: User = IIS APPPOOL\CP
LOG: DisplayName = ChickenPing.DAL
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: ChickenPing.DAL | Domain ID: 9
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:///C:/Users/echilon/Documents/CP/
LOG: Initial PrivatePath = C:\Users\echilon\Documents\CP\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\echilon\Documents\CP\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\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/Framework64/v4.0.30319/Temporary ASP.NET Files/root/7bfa5a6e/c6574e91/ChickenPing.DAL.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/7bfa5a6e/c6574e91/ChickenPing.DAL/ChickenPing.DAL.DLL.
LOG: Attempting download of new URL file:///C:/Users/echilon/Documents/CP/bin/ChickenPing.DAL.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

这实际上并没有提供太多的洞察力。

这是一个设置,在应用程序池设置的“高级设置”部分中“启用32位应用程序”