Print Page | Close Window

Problem in v7.9 about MapPath

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=11030
Printed Date: 08 April 2026 at 4:10pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem in v7.9 about MapPath
Posted By: ehumet
Subject: Problem in v7.9 about MapPath
Date 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

 




Replies:
Posted By: dj air
Date 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.



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



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


Posted By: ehumet
Date Posted: 29 June 2004 at 6:43am
I just have edited the common.asp y uploaded again


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


Posted By: ehumet
Date Posted: 29 June 2004 at 7:23am
My question is: why it appears the line 123?


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


-------------
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



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