Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Physical database path
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Physical database path

 Post Reply Post Reply Page  12>
Author
CPPJ View Drop Down
Newbie
Newbie


Joined: 16 February 2003
Location: United Kingdom
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote CPPJ Quote  Post ReplyReply Direct Link To This Post Topic: Physical database path
    Posted: 16 February 2003 at 4:45pm

I've moved the database file on my host server and altered the paths in the common files accordingly in the format : d:\misc\database.mdb

When I try to see it I get the error message :

Server.MapPath() error 'ASP 0172 : 80004005'

Invalid Path

/Forums/forum/common.asp, line 150

The Path parameter for the MapPath method must be a virtual path. A physical path was used.

I've tried using a virtual path, but this just results in regcode error messages. What am I doing wrong please ?

Back to Top
gr8indianbear View Drop Down
Groupie
Groupie


Joined: 07 November 2002
Location: United States
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote gr8indianbear Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 1:51am
the File path has to be in relation to the file that includes the common.asp file. so make sure that common.asp is in the same directory as all the other files that include it, and that the path goes from that directory
Back to Top
eaglesexec View Drop Down
Groupie
Groupie
Avatar

Joined: 02 December 2002
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote eaglesexec Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 2:58am
well first of all the virtual path ur probably not using right. if u want to use the physical path i think u have to comment the virtual path line and uncomment the physical path line both in common.asp (i am no expert anyway but just look into it. thats just my 2 cents)

Edited by eaglesexec
Back to Top
sandy771 View Drop Down
Newbie
Newbie


Joined: 07 February 2003
Location: United Kingdom
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote sandy771 Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 4:19am

Your paths will need to be of the form

..\..\databases\wwForum.mdb and

..\..\..\databases\wwForum.mdb

Back to Top
bierli View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 15 February 2003
Location: Germany
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote bierli Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 4:42am
Originally posted by sandy771 sandy771 wrote:

Your paths will need to be of the form

..\..\databases\wwForum.mdb and

..\..\..\databases\wwForum.mdb

I think the correct form will be:

../../databases/wwForum.asp OR
../../../databases/wwForum.asp

Kind regards
Thomas

Back to Top
hockenpj View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2003
Location: Belgium
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote hockenpj Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 4:49am

Bierli, I think sandy771 was correct, the db files do not end in .asp (Active Server Page) they end in .mdb (Microsoft Data Base)

Back to Top
bierli View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 15 February 2003
Location: Germany
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote bierli Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 4:52am
Originally posted by hockenpj hockenpj wrote:

Bierli, I think sandy771 was correct, the db files do not end in .asp (Active Server Page) they end in .mdb (Microsoft Data Base)

Maybe.

I use "Server.MapPath("../../data/wwForum.mdb")"

and it works.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 7:31am
Another sulotion if you want to use the physical path is to remove the part that says server.MapPath
Back to Top
 Post Reply Post Reply Page  12>

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.