asp.net:Invalid temp directory in chart handler configuration [c:\TempImageFiles\]

前端 未结 10 1080
北荒
北荒 2020-12-13 02:31

I am getting this error Invalid temp directory in chart handler configuration [c:\\TempImageFiles\\]. While running my code.

Intially I was getting

10条回答
  •  醉梦人生
    2020-12-13 03:26

    Do the followings

    1) Add or Edit the following key in web.config.

    2) Give writing privilages to IIS_User to this directory, for that do the followings:

    a) Go to Windows Explorer.
    b) Right click on c:\TempImageFiles Folder.
    c) click Properties.
    d) Select security tab , click Edit, click Add , Click Advanced, search for IIS_User.
    e) Add this IIS_User , give write permission to this user.
    f) Save and Close.
    

    Now you have set the directory and given write permission to IIS to write temporary image files to this folder.

    It should work now.

提交回复
热议问题