crtillerson
Programmer
I include a .mdb in my application which is used as a lookup. I have a variable that holds the relative path and filename which looks something like this:
Dim DSN As String = "..\MDB\Lookup.mdb"
In Visual Studio .Net when I build and run the program it works. When I deploy the program the relative path no longer works, regardless where I put the executable, under the application root directory or if I simulate the structure in the dev environment and put it in a directory called "bin". I've tried using Application.StartupPath, but this does not work in the dev environment because the .exe is stored in "bin".
What is the best way to reference file that is packaged with the application?
Thanks for any input.
Clint
Dim DSN As String = "..\MDB\Lookup.mdb"
In Visual Studio .Net when I build and run the program it works. When I deploy the program the relative path no longer works, regardless where I put the executable, under the application root directory or if I simulate the structure in the dev environment and put it in a directory called "bin". I've tried using Application.StartupPath, but this does not work in the dev environment because the .exe is stored in "bin".
What is the best way to reference file that is packaged with the application?
Thanks for any input.
Clint