Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
from about 2 hours i finished my project store management program and when i make th installation package and try it on another machine its work correctly but when i want to make report using crystalreports i got error that the path to the file denied i used xml to st it as the datasource of the report

Image :

http://i.imgur.com/XLSbx7H.png[^]
Posted

1 solution

your app doesn't have write access to the "program files(x86)" directory

that hasn't been allowed since Vista ISTR - it's bad practice

if it's a temp file, create it in the temp directory?

and make sure you delete it when you're done
 
Share this answer
 
Comments
ÃHmed Élkady 18-Aug-15 22:59pm    
so but it in the temp folder ???
ÃHmed Élkady 18-Aug-15 23:04pm    
and how i cant set the directory of the file in the temp folder in any machince
barneyman 18-Aug-15 23:13pm    
https://msdn.microsoft.com/en-us/library/system.io.path.gettemppath(v=vs.110).aspx
ÃHmed Élkady 18-Aug-15 23:15pm    
so put it in the temp folder ???
ÃHmed Élkady 18-Aug-15 23:17pm    
make the installation package to put the files in the tmp folder

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