Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - cant connect my database
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

cant connect my database

 Post Reply Post Reply
Author
mangal View Drop Down
Newbie
Newbie


Joined: 13 July 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mangal Quote  Post ReplyReply Direct Link To This Post Topic: cant connect my database
    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

 



Edited by mangal
Back to Top
kbannon View Drop Down
Groupie
Groupie


Joined: 03 October 2002
Location: Ireland
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbannon Quote  Post ReplyReply Direct Link To This Post 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 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.
Back to Top
mangal View Drop Down
Newbie
Newbie


Joined: 13 July 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mangal Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2003 at 4:50am

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

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.