Click here to Skip to main content
15,895,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

i have a desktop application developed in Visual Studio 2010 and .net 4.0.

The application have to read and write in a file, which is placed in C drive. Application runs fine as i work in Administrator account. But when i log on in a Non Administrator account, I get a error "Access denied" when i try to write to the file.

One more thing I am trying this in Windows 7, 32-bit version.

Any kind of suggestion or help will be appreciated.

bye
Posted

1 solution

Allow All Users Full Control for this file..

Right Click on that File ---> Properties ---> Go Security Tab ---> Give here Full permission to user



Thanks
AARIF SHAIKH
 
Share this answer
 
Comments
[no name] 21-Oct-14 1:10am    
Yes that should work I guess.
aarif moh shaikh 21-Oct-14 1:12am    
Thanks Praneet......

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