当页面错误时,清除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
...全文
250 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
笑羽酣天 2008-03-28
  • 打赏
  • 举报
回复
diao~~~
frankres 2008-03-28
  • 打赏
  • 举报
回复
支持11楼的说法!!!!!
应该是程序上有问题!!
  • 打赏
  • 举报
回复
如果你有源代码,你应该调试看看为什么原来系统中某个列表数据被清空了。

如果程序员是你自己管理的,告诉他应该稍微谨慎地写程序对输入参数进行检验并自定义描述清晰的异常信息,免得show出如此多垃圾信息。

如果程序是别人的,慎用。
  • 打赏
  • 举报
回复
你懂了系统环境 --> 你动了系统环境

另外,这个程序发布之前没有把"Debug"设置为false吗?怎么连源代码行号都显示出来了?这个程序是试验用的半成品吧。
  • 打赏
  • 举报
回复
程序员问题。

你懂了系统环境,应用程序重启了,内存中数据全都没了,看上去似乎“问题解决”了,其实一点也没有解决,而且也没有找到出错的代码位置。

简单的程序 BUG,由程序员负责。
dazhong23 2007-06-27
  • 打赏
  • 举报
回复
在IE中删除cookie
踏雪听雨 2007-06-27
  • 打赏
  • 举报
回复
把.NET在IIS里重新注册一下试试
regiis
swons 2007-06-27
  • 打赏
  • 举报
回复
我确定和那个特定页面没有关系。
叶子 2007-06-27
  • 打赏
  • 举报
回复
我遇到过这个问题,只不过不记得怎么弄的了,好像是webconfig,要么就是重配IIS
叶子 2007-06-27
  • 打赏
  • 举报
回复
好像是缓存问题,停止网站,重新启动,试一试
scow 2007-06-27
  • 打赏
  • 举报
回复
你确定和那个特定页面一点关系也没有?
SassyBoy 2007-06-27
  • 打赏
  • 举报
回复
在c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
文件夹加上everyone权限试试。
SassyBoy 2007-06-27
  • 打赏
  • 举报
回复
权限问题?

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧