Ok, I give Up!!!I created a deployment project in VS 2008. It packages a Windows forms app.1- My application includes two XML files that that it needs to read from. Those files were added into the solution.2- After installing the app via my deplyoment project, the app can not find the XML files that it needs, it tells me that System IO can't find the XML files3- I notice that when the files are read, the app tries to read from the User\myprograms etc area. Sometimes they are read from windows\system32 4- After I had added the files to my Windows forms app I never specified a path when retrieving. I figured the system was going to choose the application folder once deplyed and read from the same. Maybe this is where the fault exists. The application runs fine from Visual Studio.Can someone tell me if I have to specify a folder or if I have to use some sort of default syntax to make sure the files are written and read from the application folder. The XML files have had the write always property set to true.I have tried moving the files around to no avail. The code that loads one of the files is simply:xelement doc = xelement.load("myxmlFile.xml");???
View Complete Post