Results 1 to 7 of 7

Thread: App.path don`t work when debuging

  1. #1

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    App.path don`t work when debuging

    I always get error .. path not right.. When using app.path in design time.. (say refering to access Db)
    I always have to compile for it to work..

    Is there a betterway??
    That is all
    Seahag

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    yes it does, but you need to save the project to the target directory.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Put the DB whereever your saved project files are. App.PAth means the whever your APP is the path starts there. If the DB is not in the directory then you will get an error.
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  4. #4

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    eeek

    I thought i always did..
    I`ll check


  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    When you run from the IDE then it uses the VB.exe path I think. Since technically that is where it is running from.

  6. #6
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    App.path returns the correct path if you've saved it and you're running it formt the vb ide.

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Ahhhh...so that's what does it.

    It's all about the save.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width