I created IIS website with following setting (ApplicationPool account is named Fitko
)
When I run website and submit form with image, application throw an error
UnauthorizedAccessException: Access to the path 'C:\IISWorkspace\Fitko\upload\instructors' is denied. System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
I gave full permissions to Fitko
folder to these accounts
- IUSR
- Users
- Administrators
- network service
- IIS AppPool\Fitko
yet still the UnauthorizedAccessException
exception still throwing.
How can I give access permissions to IIS to write to the folder ?