System.UnauthorizedAccessException: Access to the path

Started by Dipak Bhoi, July 16, 2015, 03:13:15 PM

Previous topic - Next topic

Dipak Bhoi

Hello folks,

One of our windows shared customer was created one form for upload photo. This upload section was not working and was throwing an error message as below.

Quote"System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\vhosts\domain.com\adondomain.com\images 

After investigating on it I see that this error comes due to insufficient permissions to directory. Directory should have full permission of user psaadm, psacln, psaserv.

Follow below steps to set full permission to directory.

1. Go to C:\Inetpub\vhosts\domain.com
2. Right click on it and go to Security tab.
3. In it click on Edit button, click on Add button.
4. Dialog box of Select User or Group will be open, click on Advanced.. button and then click on Find Now.
5. Type word psa in Search results list.
6. Select psaadm, psacln, psaserv users by pressing Ctrl key. Click on OK, OK, Apply and then OK.

That's it and you should not receive this error now.

Enjoy ..... !! :) ;) :)

MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.