我正在使用highchart,只有当我在Intranet网络中的IIS服务器上运行我的网站时,我才会得到这个错误。相反,它在开发服务器(Visual Studio 2012)中工作正常
图表处理程序配置[c:\TempImageFiles]中的临时图像目录无效。请编辑web.config文件。CharImageHandler项的Dir值必须指向有效的目录。当存储模式为文件系统时,临时图像存储需要该目录。
堆栈跟踪
[DirectoryNotFoundException: Invalid temp images directory in chart handler configuration [c:\TempImageFiles\]. Please edit the web.config file. The CharImageHandler key, Dir value must point to a valid directory. The directory is required for temporary image storage when storage mode equals file system.]
System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() +1426397
System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) +1352
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.get_Settings() +197
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeControllerFile() +51
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) +357
System.Web.UI.DataVisualization.Charting.Chart.get_CurrentImageLocation() +50
System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +345
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +395
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +49
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363
3条答案
按热度按时间eqfvzcg81#
以前在
web.config
中是这样的我删除了目录位置
问题解决了。
yks3o0rb2#
请检查服务器上是否存在该文件夹,并将该文件夹的读/写权限给予网站正在运行的应用程序池的用户。
或者,您可以简单地将临时文件夹移动到站点根目录Es:“~/temp”并配置highchart以使用该文件夹。
或者,您可以将ChartImageHandler从
结束日期
因此,他将使用默认的windows临时目录
bqujaahr3#
仅从
web.config
中删除了(dir=c:\TempImageFiles\;
)目录位置和它的工作...!