1/1页1 跳转到查看:971
发新话题 回复该主题
键盘左右键可以进行前后翻页操作
帮助

本地测试好的,服务器上出现空间命名错误了!

本地测试好的,服务器上出现空间命名错误了!

编译错误 说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误信息: CS0246: 找不到类型或命名空间名称“SnSee”(是否缺少 using 指令或程序集引用?)

源错误:

 
行 21:        if (_Exception != null)行 22:        {行 23:            SnSee.Common.Exception.ExException(_Exception, true);行 24:        }行 25:        Server.ClearError();

源文件: D:\wwwroot\gulangchow\wwwroot\global.asax    行: 23


显示详细的编译器输出:

c:\windows\system32\inetsrv> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /tbrary /utf8output /R:"c:\windows\assembly\gac\system.design\1.0.5000.0__b03f5f7f11d50a3a\system.design.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\7d8be1d3\3a0a2ace\0wxx2lq3.dll" /DEBUG /debug+ /optimize- /warnaserror /w:1  "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\7d8be1d3\3a0a2ace\0wxx2lq3.0.cs"Microsoft (R) Visual C# .NET 编译器版本 7.10.6310.4用于 Microsoft (R) .NET Framework 版本 1.1.4322版权所有 (C) Microsoft Corporation 2001-2002。保留所有权利。D:\wwwroot\gulangchow\wwwroot\global.asax(23,13): error CS0246: 找不到类型或命名空间名称“SnSee”(是否缺少 using 指令或程序集引用?)


显示完整的编译源:

行 1:    //------------------------------------------------------------------------------行 2:    // <autogenerated>行 3:    //    This code was generated by a tool.行 4:    //    Runtime Version: 1.1.4322.2407行 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 : System.Web.HttpApplication {行 29:          行 30:          private static bool __initialized = false;行 31:          行 32:          行 33:          #line 3 "D:\wwwroot\gulangchow\wwwroot\global.asax"行 34:          行 35:  行 36:      void Application_Start(object sender, EventArgs e) 行 37:      {行 38:          //在应用程序启动时运行的代码行 39:  行 40:      }行 41:      行 42:      void Application_End(object sender, EventArgs e) 行 43:      {行 44:          //在应用程序关闭时运行的代码行 45:  行 46:      }行 47:          行 48:      void Application_Error(object sender, EventArgs e) 行 49:      {行 50:          //记录异常信息行 51:          Exception _Exception = Server.GetLastError().GetBaseException();行 52:          if (_Exception != null)行 53:          {行 54:              SnSee.Common.Exception.ExException(_Exception, true);行 55:          }行 56:          Server.ClearError();行 57:      }行 58:  行 59:      void Session_Start(object sender, EventArgs e) 行 60:      {行 61:          //在新会话启动时运行的代码行 62:  行 63:      }行 64:  行 65:      void Session_End(object sender, EventArgs e) 行 66:      {行 67:          //在会话结束时运行的代码。 行 68:          // 注意: 只有在 Web.config 文件中的 sessionstate 模式设置为行 69:          // InProc 时,才会引发 Session_End 事件。如果会话模式 行 70:          //设置为 StateServer 或 SQLServer,则不会引发该事件。行 71:  行 72:      }行 73:          行 74:  行 75:          #line default行 76:          #line hidden行 77:          行 78:          public Global_asax() {行 79:              if ((ASP.Global_asax.__initialized == false)) {行 80:                  ASP.Global_asax.__initialized = true;行 81:              }行 82:          }行 83:      }行 84:  }行 85: 

TOP

 

系统需要asp.net 2.0以上的环境才能支持
你的空间从错误上看,是asp.net 1.x 的环境

TOP

 
1/1页1 跳转到
发表新主题 回复该主题