Enabling Write Access to A folder in IIS
Issue
Sometimes in web development, we may want to grant WRITE access to a folder probably for file upload purposes or mostly in my own case, PDF file generation purposes. The challenge however, is that all folders are read only which means your application will always throw errors whenever you attempt a write operation.
Solution
- Locate the folder in windows explorer
- Right click on the folder and select properties
- In the securities tab, click edit, then click add in the new dialog box that shows up
- Type IIS AppPool\ApplicationPoolName (you need to replace ApplicationPoolName with the name of the application pool in IIS that your web app is running under)
- Click Check Names to resolve the name, then click Ok
- Under permissions for ..., check Modify under allow.
- Click Ok on all dialog boxes
Note
Some people will grant Modify or Full Control right to Everyone for the folder, note that this posses a huge security risk and should never be your approach to resolving the issue
Comments
Post a Comment