当页面错误时,清除asp.net缓存才能访问2
网站运行一段时间后。浏览某个页面提示错误如下。然后手动清除c:\windows\Microsoft.NET\Framework\ v2.0.50727\Temporary ASP.NET Files\root\6a8fc29c\318a188a\ 目录下面的缓存后,页面就可以正常访问。请问是什么原因,怎么解决?
错误提示如下:
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
错误提示如下:
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
...全文
请发表友善的回复…
发表回复
china_ming 2008-09-26
- 打赏
- 举报
传递了一个null给某个方法了而该方法要运行必须该参数不是null
紫气东来_999 2008-09-23
- 打赏
- 举报
[Quote=引用 3 楼 jasondct 的回复:]
用try把 当抓到这个错误时 就清空它
[/Quote]
这个效率上怕不好。。
传递了一个null给某个方法了而该方法要运行必须该参数不是null
正解
用try把 当抓到这个错误时 就清空它
[/Quote]
这个效率上怕不好。。
传递了一个null给某个方法了而该方法要运行必须该参数不是null
正解
jasondct 2008-09-22
- 打赏
- 举报
用try把 当抓到这个错误时 就清空它
活靶子哥哥 2007-06-28
- 打赏
- 举报
传递了一个null给某个方法了而该方法要运行必须该参数不是null
zhw2sun 2007-06-28
- 打赏
- 举报
破解Discuz?