Attempted to read or write protected memory

Nick_Ngai 2012-10-30 04:07:27
Server Error in '/SGP_Attendance' Application.
--------------------------------------------------------------------------------

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
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.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Source Error:


Line 455: if (day == 30)
Line 456: {
Line 457: TextObject dayone = (TextObject)crsFullTime.ReportDocument.ReportDefinition.ReportObjects["Text37"];
Line 458: dayone.Text = "";
Line 459: }


Source File: c:\CF_UAT\wwwroot\SGP_Attendance\Enquiry\CurrentMonthReport.aspx.cs Line: 457

Stack Trace:


[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +271

[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +332
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +893
CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +108
CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ReportDefinition() +56
Enquiry_CurrentMonthReport.DateLoad(String starDateTime, String Status) in c:\CF_UAT\wwwroot\SGP_Attendance\Enquiry\CurrentMonthReport.aspx.cs:457
Enquiry_CurrentMonthReport.Button1_Click(Object sender, EventArgs e) in c:\CF_UAT\wwwroot\SGP_Attendance\Enquiry\CurrentMonthReport.aspx.cs:287
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


谁知道这是什么错误,我在自己电脑没问题,发布到服务器上,就包这个错误。
...全文
688 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
bigsea 2012-11-22
  • 打赏
  • 举报
回复
在IIS上找到你网站的应用程序池,右键→回收即可
Nick_Ngai 2012-10-30
  • 打赏
  • 举报
回复
那这种问题是要释放内存来解决了?
XBodhi. 2012-10-30
  • 打赏
  • 举报
回复
你最好 F11 调试下。
XBodhi. 2012-10-30
  • 打赏
  • 举报
回复
SGP_Attendance 这是什么, 内存 读写保护错误。

试图读取或写入受保护的内存。这通常指示其他内存已损坏。
说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪错误的详细信息,它起源于代码。

异常详细信息:System.AccessViolationException:尝试读取或写入受保护的内存。这通常指示其他内存已损坏。

源错误:

62,074

社区成员

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

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

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

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