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

After installation of my application ,it write a xml called names.xml in the path AppData\Roaming\Myapplication. I want to edit this file using my application. When I trying to write something to it, it throw a exception called unauthorizedAccessException. How to change the permission of the file.

Please help me.

Thanks for ur time.
Posted
Comments
binoyvijayan 1-Nov-13 11:54am    
Please help me friends .. its Urgent
Richard C Bishop 1-Nov-13 12:45pm    
Show the code of how you are creating it. You may need to specify READ/WRITE permissions.
binoyvijayan 3-Nov-13 21:05pm    
HI Richard,

the file note created by the code. Actually I created it and add with the my installer. I already set all permission to this file. But still give the permission Error

1 solution

Hi,
A normal user can't access the files in the c:/ drive. So the software should be installed and used by a administrator privileged user. I have change the code in the Application manifesto file for this. Now My application working fine.

Thanks for time and work.

Thanks and regards
 
Share this answer
 

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