C# Chat曲線圖,在發佈以後出現錯誤 Invalid temp directory in chart handler configuration c:\TempImageFiles'

First error message: Invalid temp directory in chart handler configuration c:\TempImageFiles\web

Solution: Changed dir in ChartImageHandler app settings in web.configapp

1
2
3
< appSettings >
      < add key = "ChartImageHandler" value = "storage=file;timeout=20;dir=c:\TempImageFiles\;" />
</ appSettings >

Then this error message: The temp directory in chart handler configuration is not accessible c:\xxx\images\this

Followed error message suggestion and added access rights to directory (Properties – Security tab) for user NETWORK SERVICEspa

[Update: Other error message that can appear:
a) 「Access to the path ‘C:\xxx\images\charts\chart.png’ is denied.」 – this is the same as above, add rights for NETWORK SERVICE
b) 「Could not find a part of the path ‘C:\xxx\images\charts\chart.png’.」 – make sure directory exists or create it]
code

 

 

ConseQuently,make sure directory exists or create it.xml

相關文章
相關標籤/搜索