Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Access to the path 'D:\INETPUB\VHOSTS\24hrslivesupport.com\httpdocs\Uploadfile\Winter.jpg' is denied.


Line 109: Label1.Text = filename.ToString();
Line 110:
Line 111: Fileproject.SaveAs(Server.MapPath("~/Uploadfile/" + filename));
Line 112: // string filename1 = Path.GetFileName(FileUpload1.FileName);
Line 113: lblmag.Text = "Upload status: File uploaded!";

Source File: d:\inetpub\vhosts\24hrslivesupport.com\httpdocs\ProductControlPanel.aspx.cs Line: 111
Posted
Comments
Monika Rangta 21-Aug-14 9:46am    
displaying error on Line 111

1 solution

Your application is running as a user which does not have write access to the folder D:\INETPUB\VHOSTS\24hrslivesupport.com\httpdocs\Uploadfile\.

Edit the NTFS permissions on that folder to grant the necessary permissions to the user.
 
Share this answer
 
Comments
Monika Rangta 22-Aug-14 4:16am    
How to edit NTFS permission, please describe in steps.
Richard Deeming 22-Aug-14 7:54am    
If you don't know how to do it, then I suggest that you talk to your system administrator. There's too much that could go wrong if you try to edit the permissions without knowing what you're doing.
Monika Rangta 22-Aug-14 8:18am    
Ya, Its working now. Thanks alot

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

  Print Answers RSS


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