首頁 資料庫 mysql教程 关于The temp directory in chart handler configuration is not

关于The temp directory in chart handler configuration is not

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,即:        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
登入後複製
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
2 週前 By 尊渡假赌尊渡假赌尊渡假赌
倉庫:如何復興隊友
4 週前 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