R
Rick
I have a VB.Net 2005 application that I am publishing to a network file
server.
The app reads an xml file that has some database connection information in
it. This xml file is located in the same folder as the executable.
The problem is when I double click on the appname.application on the server
the program can't find the xml file because the Application.StartupPath is:
C:\Documents and Settings\UserName\Local Settings\Apps\2.0\...
So it looks like the program is being run from the local client rather than
the file server.
Why is that happening and is there some way to find out inside the program
where the .exe really is located?
Rick
server.
The app reads an xml file that has some database connection information in
it. This xml file is located in the same folder as the executable.
The problem is when I double click on the appname.application on the server
the program can't find the xml file because the Application.StartupPath is:
C:\Documents and Settings\UserName\Local Settings\Apps\2.0\...
So it looks like the program is being run from the local client rather than
the file server.
Why is that happening and is there some way to find out inside the program
where the .exe really is located?
Rick