I'm distributing an application via ClickOnce (runs 'online' from network'), included in the app are a couple of text files which are copied to the deployment location correctly when published.
I'm attempting to refer to the path of these files programatically:
Dim t As New HTMLTemplate("ReportTemplates\IncidentDetailMain.txt")
Sometimes this works, sometimes the app seems to look in the users My Documents folder, resulting in a DirectoryNotFoundException.
Can anyone explain what is going on here?