中国开发网: 论坛: 程序员情感CBD: 贴子 26413
小东
来段源代码
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: CS0234: The type or namespace name 'Framework' does not exist in the namespace 'NoxForum' (are you missing an assembly reference?)

Source Error:



Line 25: sql = " DELETE FROM account_onlines WHERE GETDATE() - @DoubleDate > ping_lasttime ";
Line 26:
Line 27: NoxForum.Framework.Data.SqlDbProvider.ExecuteNonQuery(
Line 28: sql,
Line 29: Nox.Common.Data.SqlHelper.MakeInParam("@DoubleDate", (double)1 / 24 / 60 * 10)


Source File: d:\vhosts\cndev.org#www2\code\global.asax.cs Line: 27



Show Detailed Compiler Output:


C:\WINNT\system32> "C:\WINNT\Microsoft.NET\Framework\v2.0.40607\csc.exe" /t:library /utf8output /R:"C:\WINNT\Microsoft.NET\Framework\v2.0.40607\mscorlib.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.3600.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.3600.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.3600.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web\2.0.3600.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.3600.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.3600.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.3600.0__b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.3600.0__b77a5c561934e089\System.Data.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v2.0.40607\Temporary ASP.NET Files\root\64a0b993\d7b34259\__codehorgvgpy.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 /nowarn:1659 "C:\WINNT\Microsoft.NET\Framework\v2.0.40607\Temporary ASP.NET Files\root\64a0b993\d7b34259\jomci6ka.0.cs" "C:\WINNT\Microsoft.NET\Framework\v2.0.40607\Temporary ASP.NET Files\root\64a0b993\d7b34259\jomci6ka.1.cs"


Microsoft (R) Visual C# .NET Compiler version 8.00.40607.16
for Microsoft (R) Windows (R) .NET Framework version 2.0.40607
Copyright (C) Microsoft Corporation 2001-2003. All rights reserved.

d:\vhosts\cndev.org#www2\code\global.asax.cs(27,15): error CS0234: The type or namespace name 'Framework' does not exist in the namespace 'NoxForum' (are you missing an assembly reference?)
d:\vhosts\cndev.org#www2\code\global.asax.cs(29,7): error CS0103: The name 'Nox' does not exist in the current context





Show Complete Compilation Source:


Line 1: #pragma checksum "D:\vhosts\cndev.org#www2\Code\global.asax.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F15BF42C38D19BD03A1053E8F3DE63CB"
Line 2:
Line 3: #line 1 "D:\vhosts\cndev.org#www2\Code\global.asax.cs"
Line 4: using System;
Line 5: using System.Collections;
Line 6: using System.ComponentModel;
Line 7: using System.Web;
Line 8: using System.Web.SessionState;
Line 9: using System.Threading;
Line 10:
Line 11: namespace NoxForum.Web
Line 12: {
Line 13: /// <summary>
Line 14: /// Summary description for Global.
Line 15: /// </summary>
Line 16:
Line 17: public class Global : System.Web.HttpApplication
Line 18: {
Line 19: public static void ThreadProc()
Line 20: {
Line 21: while (true)
Line 22: {
Line 23:
Line 24: try
Line 25: {
Line 26: string sql;
Line 27:
Line 28: sql = " DELETE FROM account_onlines WHERE GETDATE() - @DoubleDate > ping_lasttime ";
Line 29:
Line 30: NoxForum.Framework.Data.SqlDbProvider.ExecuteNonQuery(
Line 31: sql,
Line 32: Nox.Common.Data.SqlHelper.MakeInParam("@DoubleDate", (double)1 / 24 / 60 * 10)
Line 33: );
Line 34: }
Line 35: catch
Line 36: {
Line 37: // 不处理
Line 38: }
Line 39:
Line 40: Thread.Sleep(30000);
Line 41: }
Line 42: }
Line 43:
Line 44:
Line 45: public static Global CurrentApplication;
Line 46:
Line 47:
Line 48: private Thread m_ThreadMain;
Line 49:
Line 50: public Global()
Line 51: {
Line 52: CurrentApplication = this;
Line 53:
Line 54: m_ThreadMain = new Thread(new ThreadStart(ThreadProc));
Line 55: }
Line 56: protected void Application_Start(Object sender, EventArgs e)
Line 57: {
Line 58: System.Configuration.ConfigurationSettings.GetConfig("NoxForumConfiguration");
Line 59:
Line 60: m_ThreadMain.Start();
Line 61: }
Line 62:
Line 63: protected void Application_BeginRequest(Object sender, EventArgs e)
Line 64: {
Line 65:
Line 66: }
Line 67:
Line 68: protected void Application_EndRequest(Object sender, EventArgs e)
Line 69: {
Line 70:
Line 71: }
Line 72:
Line 73: protected void Application_AuthenticateRequest(Object sender, EventArgs e)
Line 74: {
Line 75:
Line 76: }
Line 77:
Line 78: protected void Application_Error(Object sender, EventArgs e)
Line 79: {
Line 80:
Line 81: }
Line 82:
Line 83: protected void Session_Start(Object sender, EventArgs e)
Line 84: {
Line 85: }
Line 86:
Line 87: protected void Session_End(Object sender, EventArgs e)
Line 88: {
Line 89:
Line 90: }
Line 91:
Line 92: protected void Application_End(Object sender, EventArgs e)
Line 93: {
Line 94: m_ThreadMain.Abort();
Line 95:
Line 96: }
Line 97:
Line 98: }
Line 99: }
Line 100:
Line 101:
Line 102:
Line 103: #line default
Line 104: #line hidden
Line 105:





--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.40607.16; ASP.NET Version:2.0.40607.16

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录