最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
当前位置: 首页 - 科技 - 知识百科 - 正文

关于Thetempdirectoryincharthandlerconfigurationisnot

来源:懂视网 责编:小采 时间:2020-11-09 15:27:54
文档

关于Thetempdirectoryincharthandlerconfigurationisnot

关于Thetempdirectoryincharthandlerconfigurationisnot:这几天从JAVA转到ASP.NET C# 第一次做就出现问题了,如下: 在本机运行没任何问题 上传服务器就说Invalid temp directory in chart handler configuration [c:\TempImageFiles\] ,然后我第一次按照网上大神说的山区WEB.CONFIG里面DIR
推荐度:
导读关于Thetempdirectoryincharthandlerconfigurationisnot:这几天从JAVA转到ASP.NET C# 第一次做就出现问题了,如下: 在本机运行没任何问题 上传服务器就说Invalid temp directory in chart handler configuration [c:\TempImageFiles\] ,然后我第一次按照网上大神说的山区WEB.CONFIG里面DIR

这几天从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,即: BorderlineColor="Red">

WEB.CONFIG 里面改为:

然后就出现了

The temp directory in chart handler configuration is not accessible [C:\Inetpub\wwwroot\DKDWebsite\TempImages\].

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:\Inetpub\wwwroot\DKDWebsite\TempImages\].

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 , 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

声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

本文如未解决您的问题请添加抖音号:51dongshi(抖音搜索懂视),直接咨询即可。

文档

关于Thetempdirectoryincharthandlerconfigurationisnot

关于Thetempdirectoryincharthandlerconfigurationisnot:这几天从JAVA转到ASP.NET C# 第一次做就出现问题了,如下: 在本机运行没任何问题 上传服务器就说Invalid temp directory in chart handler configuration [c:\TempImageFiles\] ,然后我第一次按照网上大神说的山区WEB.CONFIG里面DIR
推荐度:
标签: ha 关于 the
  • 热门焦点
专题
Top

抖音扫码关注

手机端二维码

每天分享百科知识!