首页 数据库 mysql教程 关于图表处理程序配置中的临时目录不是

关于图表处理程序配置中的临时目录不是

Jun 07, 2016 pm 03:43 PM
directory temp the 关于

这几天从JAVA转到ASP.NET C# 第一次做就出现问题了,如下: 在本机运行没任何问题 上传服务器就说Invalid temp directory in chart handler configuration [c:TempImageFiles] ,然后我第一次按照网上大神说的山区WEB.CONFIG里面DIR=xxx部分结果没用,但是

这几天从JAVA转到ASP.NET C#

第一次做就出现问题了,如下:

在本机运行没任何问题 上传服务器就说Invalid temp directory in chart handler configuration [c:TempImageFiles] ,然后我第一次按照网上大神说的山区WEB.CONFIG里面DIR=xxx部分结果没用,但是很多网友说是有用的弄的我很郁闷,第二次就按另外个办法 在SOLUTION里面建立个FOLDER命名为TempImages,即:<asp:Chart ID="Chart1" runat="server" ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" BackSecondaryColor="Red"
        BorderlineColor="Red">

WEB.CONFIG 里面改为:<add key="ChartImageHandler" value="storage=file;timeout=20;Url=~/TempImages/;"/>
 </appSettings>

然后就出现了

The temp directory in chart handler configuration is not accessible [C:InetpubwwwrootDKDWebsiteTempImages].

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.UnauthorizedAccessException: The temp directory in chart handler configuration is not accessible [C:InetpubwwwrootDKDWebsiteTempImages].

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

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:

[UnauthorizedAccessException: The temp directory in chart handler configuration is not accessible [C:\Inetpub\wwwroot\DKDWebsite\TempImages\].]
   System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() +765630
   System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) +437
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeParameters() +122
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.get_Settings() +29
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeControllerFile() +32
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) +368
   System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() +24
   System.Web.UI.DataVisualization.Charting.Chart.get_CurrentImageLocation() +40
   System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +306
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +173
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060
登录后复制
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热门文章

仓库:如何复兴队友
3 周前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.能量晶体解释及其做什么(黄色晶体)
1 周前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒险:如何获得巨型种子
3 周前 By 尊渡假赌尊渡假赌尊渡假赌

热门文章

仓库:如何复兴队友
3 周前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.能量晶体解释及其做什么(黄色晶体)
1 周前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒险:如何获得巨型种子
3 周前 By 尊渡假赌尊渡假赌尊渡假赌

热门文章标签

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

Active Directory 用户和计算机丢失 [以 3 种方式修复] Active Directory 用户和计算机丢失 [以 3 种方式修复] Apr 20, 2023 pm 01:25 PM

Active Directory 用户和计算机丢失 [以 3 种方式修复]

2 个月不见,人形机器人 Walker S 会叠衣服了 2 个月不见,人形机器人 Walker S 会叠衣服了 Apr 03, 2024 am 08:01 AM

2 个月不见,人形机器人 Walker S 会叠衣服了

教你如何修改Win7的临时文件位置 教你如何修改Win7的临时文件位置 Jan 04, 2024 pm 11:25 PM

教你如何修改Win7的临时文件位置

电脑里temp是什么意思 电脑里temp是什么意思 Sep 29, 2021 pm 04:39 PM

电脑里temp是什么意思

内部错误:无法创建临时目录 [已解决] 内部错误:无法创建临时目录 [已解决] Apr 17, 2023 pm 03:04 PM

内部错误:无法创建临时目录 [已解决]

如何修复 Windows 11 / 10 中的处理器热跳闸错误 [修复] 如何修复 Windows 11 / 10 中的处理器热跳闸错误 [修复] Apr 17, 2023 am 08:13 AM

如何修复 Windows 11 / 10 中的处理器热跳闸错误 [修复]

temp是什么文件 temp是什么文件 Jan 05, 2021 am 10:43 AM

temp是什么文件

THE是什么币种,THE币值得投资吗? THE是什么币种,THE币值得投资吗? Feb 21, 2024 pm 03:49 PM

THE是什么币种,THE币值得投资吗?

See all articles