Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem in v7.9 about MapPath
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem in v7.9 about MapPath

 Post Reply Post Reply
Author
ehumet View Drop Down
Newbie
Newbie


Joined: 29 June 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ehumet Quote  Post ReplyReply Direct Link To This Post Topic: Problem in v7.9 about MapPath
    Posted: 29 June 2004 at 5:57am

Hi, i'm spanish so sorry for my inglish.

I've installed the version v7.9 of web wiz forum in my website. I can log as administrator but when i try to enter in the administrator menu it appears the next message:

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

Path Not Found

/ligasonline/forum/admin/common.asp, line 123

The Path parameter for the MapPath method did not correspond to a known path.

I see the common.asp and inte line 123 is empty:

122 Dim blnUseApplicationVariables 'Set to true if application varibles are used'These are used for forum permissions

123
124 Dim blnRead

I've changed the position and name of my database. I've put it in websitename/db/database.db

The forum is:

websitename/forum/etc...

And i do:

strDbPathAndName = Server.MapPath("..\..\websitename\db\database.mdb")

I've tried to do all the possibles combinations but nothing...

Also i've tried to do a physicial connection, but also crashes, it appears a message of dns connection failed.

If you know what i can do, please tell me.

Tnx at all

 

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2004 at 6:00am
strDbPathAndName = Server.MapPath("..\..\websitename\db\database.mdb")

i looked at this section and from the admin area this part  (..\..\) will take you to the website root folder.

not knowing the file structure layout. you may need to add another ..\ to the path.

Back to Top
ehumet View Drop Down
Newbie
Newbie


Joined: 29 June 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ehumet Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2004 at 6:22am

Tnx for answer,

i've tried to do what you tell me, but if i add another ..\ i can't enter to the forum, it apeears the same error but in the line 203

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2004 at 6:32am
silly question but you have added an extra ..\ to the admin common.asp . one more than ther main forums common.asp file.

Or have you just edited the common.asp in the forum folder
Back to Top
ehumet View Drop Down
Newbie
Newbie


Joined: 29 June 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ehumet Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2004 at 6:43am
I just have edited the common.asp y uploaded again
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2004 at 6:52am
its the path to the database thats the problem if its not fixed you could try the physical path. (C:\website\). you may need to contact you web host for this. As it changes from host to host.
Back to Top
ehumet View Drop Down
Newbie
Newbie


Joined: 29 June 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ehumet Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2004 at 7:23am
My question is: why it appears the line 123?
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: 29 June 2004 at 8:56am
There are two common.asp files, one in the admin area and one with the main forum files.

You maybe looking at the wrong file.

You will also nned to change the path in both files.

Your path looks a little strange:-

Server.MapPath("..\..\websitename\db\database.mdb")

Why have you got the part marked in red? To get to your web site root would it not be?:-

Server.MapPath("..\..\db\database.mdb")
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.