Access to the path Denied when uploading excel file

后端 未结 4 851
夕颜
夕颜 2020-12-21 11:20

When uploading an excel file I am receiving this error, can anyone help me?

Access to the path \'C:\\Data\\IronElements\\Upload\\AUMData\\20101202

相关标签:
4条回答
  • 2020-12-21 11:53

    To get a better handle on permission problems like this I always create a low-priv'ed user to run our websites. The user is named after the website itself so it's obvious what it's for.

    Then that user only gets perms on the right folders, in your case, C:\Data\IronElements\Upload\AUMData. It's also a good way to limit DB access - create a login for that specific user in SQL with minimal privs.

    0 讨论(0)
  • 2020-12-21 11:59

    The account that your web session is running under does not have permissions to write to that folder. Once you give the ASP.Net account (or whichever account you are using) the required permissions, it should work as expected.

    0 讨论(0)
  • 2020-12-21 12:00

    Make sure the folder C:\Data\IronElements\Upload\AUMData has NTFS write permission for the user in which context IIS executes. Also please make sure that the subfolders of C:\Data\IronElements\Upload inherits permissions from it's parent. To do this, click Advanced button from security tab -> Change permissions -> check Replace all child object permissions with inheritable permissions from this object -> Hit Ok

    0 讨论(0)
  • 2020-12-21 12:09

    go to the app-pool which you are using for this application and change the identity of it to 'Network Service'. I faced the similar issue and fixed in same way

    0 讨论(0)
提交回复
热议问题