通常是你的global.asax没有包涵到你的项目中去

解决方案 »

  1.   

    在引用中把该项删除掉,重新play
      

  2.   

    可是现在又出现:
    #################################################################
    “/aspx”应用程序中的服务器错误。
    --------------------------------------------------------------------------------编译错误 
    说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS1595: 已在多处定义“System.Runtime.CompilerServices.CompilerGlobalScopeAttribute”;使用“C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll”中的定义源错误: 行 25:     
    行 26:     
    行 27:     [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
    行 28:     public class Global_asax : aspx.Global {
    行 29:         
     源文件: C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\aspx\7572633a\9a705dd5\ei7h_gej.0.cs    行: 27 显示详细的编译器输出:
    C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\csc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\aspx\7572633a\9a705dd5\assembly\dl\b30089a4\b0cf7608_2265c201\aspx.dll" /R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\aspx\7572633a\9a705dd5\ei7h_gej.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1  "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\aspx\7572633a\9a705dd5\ei7h_gej.0.cs"
    Microsoft (R) Visual C# .NET Compiler version 7.00.9466
    for Microsoft (R) .NET Framework version 1.0.3705
    版权所有 (C) Microsoft Corporation 2001。保留所有权利。C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\aspx\7572633a\9a705dd5\ei7h_gej.0.cs(27,6): error CS1595: 已在多处定义“System.Runtime.CompilerServices.CompilerGlobalScopeAttribute”;使用“C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll”中的定义 显示完整的编译源:
    行 1:    //------------------------------------------------------------------------------
    行 2:    // <autogenerated>
    行 3:    //     This code was generated by a tool.
    行 4:    //     Runtime Version: 1.0.3705.0
    行 5:    //
    行 6:    //     Changes to this file may cause incorrect behavior and will be lost if 
    行 7:    //     the code is regenerated.
    行 8:    // </autogenerated>
    行 9:    //------------------------------------------------------------------------------
    行 10:   
    行 11:   namespace ASP {
    行 12:       using System;
    行 13:       using System.Collections;
    行 14:       using System.Collections.Specialized;
    行 15:       using System.Configuration;
    行 16:       using System.Text;
    行 17:       using System.Text.RegularExpressions;
    行 18:       using System.Web;
    行 19:       using System.Web.Caching;
    行 20:       using System.Web.SessionState;
    行 21:       using System.Web.Security;
    行 22:       using System.Web.UI;
    行 23:       using System.Web.UI.WebControls;
    行 24:       using System.Web.UI.HtmlControls;
    行 25:       
    行 26:       
    行 27:       [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
    行 28:       public class Global_asax : aspx.Global {
    行 29:           
    行 30:           private static bool __intialized = false;
    行 31:           
    行 32:           public Global_asax() {
    行 33:               if ((ASP.Global_asax.__intialized == false)) {
    行 34:                   ASP.Global_asax.__intialized = true;
    行 35:               }
    行 36:           }
    行 37:       }
    行 38:   }
    行 39:   
     
    --------------------------------------------------------------------------------
    版本信息: Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0 
    ################################################################
    咋回事??
      

  3.   

    http://www.csdn.net/expert/topic/1022/1022083.xml?temp=.5751917