Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

app.path??? 1

Status
Not open for further replies.

barryna

Programmer
Feb 15, 2002
111
US
I am just getting started using vb.net and need some guidance. I have worked with VB6 for years now, and that makes sense to me. But with this .net stuff, how do you reference files locally in your app? For example, I have an ole connection to a local access 2000 database. When a client installs this app, that path to the database changes. I cannot find App.Path in vb.net to use as I normally would in VB6 to open the database where it is installed. How do you do this in VB.Net? Any help would be very much appreciated.

Nick
 
Thanks. Simple, as I expected. Star for you.

I need a good VB.Net book or web site that tells me differences I need to know being a VB6 programmer now starting VB.Net. The above being a prime example. Any recommendations?

Also, I originally started and saved my .Net project on our NT server (for backup purposes), but when I open my project I get the following message:

"The project location is not fully trusted by the .Net runtime. This is usually because it is either a network share or mapped to a network share not on the local machine. If the output path is under the project location, your code will not execute as fully trusted and you may recieve unexpected security exemptions."

I understand most of it except the last sentence about output path and not execute fully trusted. What is this really telling me and what is my solution? Right now I am saving my project locally to avoid the message and errors.

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top