简体   繁体   中英

How to prevent the 'Access to the path .xlxs is denied' error?

In my application i can upload to Excel and insert values into a database correctly.
But when I published my application on an IIS Server, when uploading to Excel it's showing the following error:

"Access to the path .xlsx is denied".

You need to give the users permission to write / execute files to the specified folder:

In ISS Manager just rightclick the folder you want to save the file.

After that, you can click "edit permissions..." and there you need to find the Security Tab with the User / Groups.

Find the user you want to give permission to and save it afterwards.

Than restart your IIS WebSite and test it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM