Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - path to db problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

path to db problem

 Post Reply Post Reply
Author
Mike Keeney View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2003
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mike Keeney Quote  Post ReplyReply Direct Link To This Post Topic: path to db problem
    Posted: 14 June 2003 at 3:10pm
I'm having a problem getting the path to a database to work correctly.

In order for a DB to be updatable, my WPP has created a DB folder on my site that is write enabled. The virtual path to the directory is silvestri/DB. However, the program itself is located below the WWWROOT directory. (We're on a Win 2003 server).

I can't seem to get the path to the db file correct. If I put the db file into the db folder I can't set the path to it in the Common.asp file. Here's what the line looks like in the Common.asp file:

strDataBasePath = ""&strDBpathCorrection&"LiveSupport.mdb"

However, if I move LiveSupport.mdb to the DB directory and change the path to the db to

strDataBasePath = ""&strDBpathCorrection&"/db/LiveSupport.mdb",

I get an error in the browser that says:

'c:\inetpub\virtual\silvestri\WWWROOT\db\LiveSupport.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

/chat/common.asp, line 159

Here are the locations of the relative files & folders.

The virtual path to my DB directory is: silvestri/DB. The Physical path is: C:\inetpub\virtual\silvestri\DB.

The virtual path to the program is:
silvestri/chat.

The physical path is:
C:\inetpub\virtual\silvestri\WWWROOT\chat.

I appreciate your help.

Mike Keeney

Back to Top
TYSON View Drop Down
Groupie
Groupie


Joined: 18 August 2002
Location: Australia
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote TYSON Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2003 at 5:53pm
Try Removing Server.Mappath() from the connection string and use your physical path instead.
Back to Top
Bullschmidt View Drop Down
Groupie
Groupie


Joined: 31 May 2003
Location: United States
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bullschmidt Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2003 at 12:36am

Originally posted by TYSON TYSON wrote:

Try Removing Server.Mappath() from the connection string and use your physical path instead.

That's exactly what I was thinking too even though the original question didn't actually say it was using Server.MapPath().

J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)
Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2003 at 4:05am
..or you could use
strDataBasePath = ""&strDBpathCorrection&"../db/LiveSupport.mdb"

Blair

Edited by b_bonnett
Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.