I can load my XML file as expected during debugging mode using the code as follows:
Dim strm As New FileStream(System.IO.Path.GetFullPath(Application.StartupPath & "\QuestionList.xml"), FileMode.Open)
But after I published my project using ClickOnce Deployment, an error message is always prompting stating that:
Could not find the file: 'C:\Documents and Settings*username*\Local Settings\Apps\2.0\RANDOM CHARACTERS HERE\QuestionList.xml'
A File not found exception occurs.
My problem is similar with this question here in SO, and tried the solutions proposed out there but with no luck, just like the original poster.
Why can't I access an XML file onced I published my project?