Hello. There is a problem with loading the page in an ASP.NET project. On the project form there is a chart element on which the chart is located. If I just open the form, then I see it normally, but when in a running project I try to enter it, it crashes.

System.IO.DirectoryNotFoundException: 'Invalid temp directory in chart handler configuration [c:\TempImageFiles\].' 

What could be the problem? Thanks in advance.

  • The problem is that you have entered the wrong `c: \ TempImageFiles` temporary directory in the chart handler settings. And ASP.NET cannot find it. - Dmitry
  • @Dmitry, that is, I have to specify the directory where the chart is located? - Andrey
  • I think in the settings you need to specify the existing directory on the file system to which the user has access, on whose behalf the application is launched - Dmitry
  • @Dmitry thanks a lot. It helped. In web.config, I set a different path, plus it was necessary to manually create this directory. And it all worked. If it's not difficult, please make your comment as an answer so that I can close the topic. Thanks in advance. - Andrey
  • Yes, not at all. Not difficult, I will write the answer. - Dmitry

1 answer 1

The problem is that you have entered the wrong c:\TempImageFiles temporary directory in the chart handler settings. And ASP.NET cannot find it.

To solve this problem, in the settings you need to specify an existing directory on the file system to which the user has access, on behalf of which the application is launched.