.net - 错误 : Chart cannot save an item after 10 attempts

标签 .net .net-3.5 microsoft-chart-controls

我的微型 Web 应用程序做的很少:根据查询字符串中传递的项目代码读取 SQL 并显示图表。好几个月了,今天我突然收到这个错误信息:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Chart cannot save an item after 10 attempts.
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.IO.IOException: Chart cannot save an item after 10 attempts.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IOException: Chart cannot save an item after 10 attempts.]
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.GetChartImageUrl(MemoryStream stream, String imageExt) +532
   System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +243
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

最佳答案

我的 DBA 帮我解决了这个问题。硬盘空间不足,图表所需的 TempFolder 已满,因此无法按照上述错误将图表保存在那里。

关于.net - 错误 : Chart cannot save an item after 10 attempts,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5312632/

相关文章:

c# - 连接列在数据表中添加数据

.net-3.5 - 如何测试我的服务器是否安装了 .net 3.5 SP1?

.net-3.5 - SetWindowsHookEx 在 32 位机器上的 .NET 4.0 中失败,代码为 "module not found"?

.net 3.5 中的 c# MemoryMappedFile

c# - 图表控件 : Stacked Column Series Label Positioning

c# - 在 Microsoft Chart 控件中启用鼠标滚轮缩放

c# - 仅当页面具有母版页时,在 IE 中单击 Microsoft Chart 控件时图像映射才可见

c# - 如何获取有关异常的更多信息

c# - 引用分配和读取是原子操作吗?

.net - Xamarin.mac单元测试项目