找不到文件或程序集名称“System”,或找不到它的一个依赖项。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.IO.FileNotFoundException: 找不到文件或程序集名称“System”,或找不到它的一个依赖项。源错误: 
行 30:         private static bool __intialized = false;
行 31:         
行 32:         public Global_asax() {
行 33:             if ((ASP.Global_asax.__intialized == false)) {
行 34:                 ASP.Global_asax.__intialized = true;
 我在本机上测试一点问题没有,放服务起上后就出现上面的错误什么问题啊?

解决方案 »

  1.   

    ??神奇Try:项目->添加引用->.NET->System->确定
      

  2.   

    服务器上装了.net framework了吗?
      

  3.   

    System.IO.FileNotFoundException看起来像System.dll丢失了,或者还有它依赖的东西没了
      

  4.   

    原来有这个系统,我是改的,原来的能运行,改过后在放上去就不能运行了具体错误见下
    === Pre-bind state information ===
    LOG: DisplayName = System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
     (Fully-specified)
    LOG: Appbase = file:///E:/www/DCallCenter
    LOG: Initial PrivatePath = bin
    Calling assembly : CallCenter, Version=1.0.2330.27479, Culture=neutral, PublicKeyToken=null.
    ===LOG: Publisher policy file is not found.
    LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
    LOG: Using machine configuration file from C:\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:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/dcallcenter/36d75f67/7c79a548/System.DLL.
    LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/dcallcenter/36d75f67/7c79a548/System/System.DLL.
    LOG: Attempting download of new URL file:///E:/www/DCallCenter/bin/System.DLL.
    LOG: Attempting download of new URL file:///E:/www/DCallCenter/bin/System/System.DLL.
    LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/dcallcenter/36d75f67/7c79a548/System.EXE.
    LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/dcallcenter/36d75f67/7c79a548/System/System.EXE.
    LOG: Attempting download of new URL file:///E:/www/DCallCenter/bin/System.EXE.
    LOG: Attempting download of new URL file:///E:/www/DCallCenter/bin/System/System.EXE. 堆栈跟踪: 
    [FileNotFoundException: 找不到文件或程序集名称“System”,或找不到它的一个依赖项。]
       CallCenter.Global..cctor() +0[TypeInitializationException: “CallCenter.Global”的类型初始值设定项引发异常。]
       CallCenter.Global..ctor() +0
       ASP.Global_asax..ctor() in C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\dcallcenter\36d75f67\7c79a548\irjawkiz.0.cs:32[TargetInvocationException: 调用的目标发生了异常。]
       System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
       System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +277
       System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +109
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance() +160
       System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +20
       System.Web.HttpApplicationFactory.Init(HttpContext context) +487
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +155
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +407 
      

  5.   

    LOG: Publisher policy file is not found.
    LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
      

  6.   

    我知道了,是不是原来装的是.net 我现在拿.net 2003做的,Framework版本号不同.那怎么改啊?
    是不是直接把v1.1.4705文件夹考过去啊?