Server Error in '/' Application.
--------------------------------------------------------------------------------Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0012: The type 'WebApplication1.Global' is defined in an assembly that is not referenced. You must add a reference to assembly 'App_Code.7qhseiux, Version=1.0.3384.27929, Culture=neutral, PublicKeyToken=null'.Source Error: Line 48:     }
Line 49:     
Line 50:     protected ASP.global_asax ApplicationInstance {
Line 51:         get {
Line 52:             return ((ASP.global_asax)(this.Context.ApplicationInstance));
 Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c2883330\f388f2ff\App_Web_tour_admin.aspx.cdcab7d2.er5tfwsx.0.cs    Line: 50 

解决方案 »

  1.   

    是不是dll文件丢失掉了?重新发布一下网站试试
      

  2.   

    c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\
    去这里把所有的文件删除,然后重新编译.
      

  3.   

    服务器上,有好几个.net的网站,只有这个出报这个错误.在前几个月中,都是正常的,只有昨天开始这样.
      

  4.   

    The type 'WebApplication1.Global' is defined in an assembly that is not referenced. You must add a reference to assembly 'App_Code.7qhseiux, Version=1.0.3384.27929, Culture=neutral, PublicKeyToken=null'.add a reference to assembly 添加程序集引用
    重新生成
      

  5.   

    You must add a reference to assembly 'App_Code.7qhseiux, Version=1.0.3384.27929, Culture=neutral, PublicKeyToken=null添加引用,重新生成
      

  6.   

    dll文件丢失,删除Temporary ASP.NET Files\root里文件重新发布网站