Print Page | Close Window

cant connect my database

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=4218
Printed Date: 02 April 2026 at 4:58am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: cant connect my database
Posted By: mangal
Subject: cant connect my database
Date Posted: 13 July 2003 at 4:02am

can somebody please help me...

i have put my database in the map _private thats were i must put database's in (isp told me) i didt that but now i get this error in the main;

 Microsoft JET Database Engine error '80004005'

Could not find file 'E:\webhosting\trancede\home\forum\_private\wwForum.mdb'.

/forum/common.asp, line 232

and this error in the common.asp in the admin directory;

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] '(unknown)' 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.

/forum/admin/common.asp, line 159

But i have rename the two common.asp file like this strDbPathAndName = Server.MapPath("_private/wwForum.mdb")

What i did wrong and how can i make this work

 




Replies:
Posted By: kbannon
Date Posted: 13 July 2003 at 4:29am

I assume that your server has two folders e.g. public(visible web pages) and _private(for databases)
If your forum is http://www.yoursite.com/forum - www.yoursite.com/forum then it is in a subfolder called forum in the public folder.
To get to the DB you need to go up two levels (out of the forum to public and out of public to _private) by doing ../ for each level you want to go up. Therefore in common.asp you would have
../../_private/wwForum.mdb
The common.asp in the admin folder would have one more ../ i.e.
../../../_private/wwForum.mdb



-------------
I don't suffer from insanity, I enjoy every minute of it.


Posted By: mangal
Date Posted: 13 July 2003 at 4:50am

Dear Kbannon>>> YOUR GREAT THANK MAN it works!!!




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