By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,550 Members | 918 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,550 IT Pros & Developers. It's quick & easy.

Final installation debugging

P: 72
Hey guys, i'm so close to finishing i can already taste the victory beverage. However, when i install my finished product it runs fine...until the very last action is done (a button that 'saves' the job). The program pops this error up.

"Unhandled exception has occurred in your application. If you click continue, the app will ignor this error and attempt to continue. If you click quit, the app will close.

Could not find a part of the path "C:\Program Files(x86)\ATR\Save A


sadly, the error message ends right there. I can send the rest of the 'details' in the error if that will help...but it's a lot of jargon.

So any clues?
Dec 4 '12 #1
Share this Question
Share on Google+
2 Replies

P: 72
Ok i found the culprit.

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\ATR\Save A Job\obj\Release\42\ATR\BackupProgram\Backup.xml'.

For some reason, the program is looking for the backup.xml file in the wrong place. (and seemingly added folders)

The way i'm calling the backup.xml file in the program is by "(System.Environment.SpecialFolder.ProgramFile sX86 & "\ATR\Save A Job\Backup.xml")"

which, could be the wrong way, but it makes sense to me. But i would assume that the full path to the file location would be as follows:

"C:\Program Files (x86)\ATR\Save A Job\backup.xml"

however, it is looking for it in the wrong place (obvious from the error)

Any help?
Dec 4 '12 #2

P: 72
Got it fixed guys. It was the permissions to the installation folder. It was set to "read/write only"...once i switched it to Full Control, everything worked fine
Dec 5 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.