当页面错误时,清除asp.net缓存才能访问
swons 2007-06-27 04:21:13 网站运行一段时间后。浏览某个页面提示错误如下。然后手动清除c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6a8fc29c\318a188a\ 目录下面的换存后,页面就可以正常访问。请问是什么原因,怎么解决?
c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6a8fc29c\318a188a\App_Web_gptedgia.16.cs
Server Error in '/' Application.
--------------------------------------------------------------------------------
Value cannot be null.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: value
Source Error:
[No relevant source lines]
Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6a8fc29c\318a188a\App_Web_gptedgia.16.cs Line: 0
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: value]
System.Collections.CollectionBase.OnValidate(Object value) +2427598
System.Collections.CollectionBase.System.Collections.IList.Add(Object value) +33
Discuz.Forum.Components.TopicViewCollection.AddRange(TopicView[] value) +31
Discuz.Forum.TopicStats.AddQuedStats(TopicView tv) +242
Discuz.Forum.TopicStats.Track(TopicView tv) +36
Discuz.Forum.TopicStats.Track(Int32 tid, Int32 viewcount) +42
Discuz.ForumPage.showtopic.ShowPage() +3685
Discuz.Forum.BasePage..ctor() +3989
Discuz.ForumPage.showtopic..ctor() +39
ASP.aspx_1_showtopic_aspx..ctor() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6a8fc29c\318a188a\App_Web_gptedgia.16.cs:0
__ASP.FastObjectFactory_app_web_gptedgia.Create_ASP_aspx_1_showtopic_aspx() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6a8fc29c\318a188a\App_Web_gptedgia.27.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42