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

I crated windows application in c#.net using dev express 11.1.7.0 & create i create a setup of this application. In this application i create a new xml file when i click on button click event (save button). This xml file is save in the start up path of application at XML folder (E:\\Test\\bin\\debug\\XML\\test1.xml).

I install this setup on XP & Windows7. On XP it works perfectly. But on Windows 7 xml file not created. I don't get any error. Other than XML file all record save successfully.

Why windows7 not created xml file in startup path?

Thanks in advance
Posted

1 solution

On windows 7 with UAC enabled your program does not have permission to write in the application folder in "C:\Program Files\".

Your program should not write data files in the application folder, except when installing updates. Instead write files to the user application data folder.
 
Share this answer
 
Comments
Аslam Iqbal 27-Sep-11 1:36am    
good ans....5
vrushali katkade 27-Sep-11 1:40am    
Thanks for reply,

But I create a text file in same setup. its working perfectly.

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