Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
i have published my website
when i am trying to upload any image
it is giving me the exception
HTML
Access to the path '~/images/thumbs/' is denied

i tried giving read/write permissions to it....but no use

my code works fine before publish.


please help

Regards
Posted
Comments
abbaspirmoradi 16-Sep-13 6:49am    
check image floder exists on server or not?
Priyanka Bhagwat 16-Sep-13 6:55am    
ya i checked it is there..
Dholakiya Ankit 16-Sep-13 6:54am    
add read write information

Just check it once

access-to-the-path-is-denied[^]
 
Share this answer
 
hi ,check your folder selected security permission..
add Everyone on security Role and checked read and write permission on folder for test..
 
Share this answer
 
v2
Comments
Priyanka Bhagwat 16-Sep-13 7:11am    
ya done with it...still same error
Hi,
Please check in IIS for your folder "images" permission. When you don't have permission to access this folder, this error occurs. To give access follow this steps.

1. Open IIS. Right click on your application, select security tab.
2. Click on Edit, and add IIS_Users user with read write access rights.

That's it.Hope it helps.

Thanks.
 
Share this answer
 
v2
Comments
Priyanka Bhagwat 16-Sep-13 7:11am    
can you please elaborate the 2nd step?
shall i add a new user named IIS_USER??
Harshil_Raval 16-Sep-13 7:17am    
Click on Edit. Find IIS_Users in username list. If it is not there, then click on Add-> Advanced-> FindNow. It will list username list, from there find IIS_Users. Click ok. and finally add read,write access write to that user.
rahulaaditya 16-Sep-13 7:38am    
Hi, please leave your reply. Have you tried Harshil's comments?. I am learning such scenario.
Priyanka Bhagwat 16-Sep-13 8:27am    
ya i tried but still m fighting with the same error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900