Print Page | Close Window

Physical database path

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=229
Printed Date: 28 March 2026 at 3:40am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Physical database path
Posted By: CPPJ
Subject: Physical database path
Date 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 ?




Replies:
Posted By: gr8indianbear
Date 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


Posted By: eaglesexec
Date 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)


Posted By: sandy771
Date Posted: 17 February 2003 at 4:19am

Your paths will need to be of the form

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

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



Posted By: bierli
Date 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



Posted By: hockenpj
Date 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)



Posted By: bierli
Date 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.



Posted By: WebWiz-Bruce
Date 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

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: CPPJ
Date Posted: 17 February 2003 at 4:27pm

Thanks very much for all your help, have got it sorted now.

For the record, I ended up keeping the original physical path and removing the appropiate server.MapPath comment as boRg suggested.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net