why the assembly 'System' could not be loaded(为什么找不到??)(答对有100分)
我在主机A上用VS Studio.Net开发了一个网站,编译运行均无误。
然后我把整个主机A上该网站的所有文件(就是虚拟目录下的所有文件,包括Globe和Web配置文件以及bin文件夹,所有的aspx文件等等)全部考到另一台主机B上,并在主机B上建立虚拟目录(主机B上有IIS)。接着在主机B上安装DBMS,将数据库文件也进行相应的移植,也无误。
在安装完成 asp.net 运行环境(.net framework SDK )后运该网站,却了出现如下的错误:
Server Error in '/BookStore' Application.
--------------------------------------------------------------------------------
File or assembly name System, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: File or assembly name System, or one of its dependencies, was not found.
Source Error:
Line 30: private static bool __intialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__intialized == false)) {
Line 34: ASP.Global_asax.__intialized = true;
Source File: E:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\bookstore\0eb0b1a7\df71b7d7\z7-0lhyx.0.cs Line: 32
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///D:/jiang/BookStore
LOG: Initial PrivatePath = bin
Calling assembly : BookStore, Version=1.0.1239.41835, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (E:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from E:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/bookstore/0eb0b1a7/df71b7d7/System.DLL.
LOG: Attempting download of new URL file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/bookstore/0eb0b1a7/df71b7d7/System/System.DLL.
LOG: Attempting download of new URL file:///D:/jiang/BookStore/bin/System.DLL.
LOG: Attempting download of new URL file:///D:/jiang/BookStore/bin/System/System.DLL.
LOG: Attempting download of new URL file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/bookstore/0eb0b1a7/df71b7d7/System.EXE.
LOG: Attempting download of new URL file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/bookstore/0eb0b1a7/df71b7d7/System/System.EXE.
LOG: Attempting download of new URL file:///D:/jiang/BookStore/bin/System.EXE.
LOG: Attempting download of new URL file:///D:/jiang/BookStore/bin/System/System.EXE.
我该怎么办?