Print Page | Close Window

conection

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25383
Printed Date: 29 March 2026 at 2:54pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: conection
Posted By: urko
Subject: conection
Date Posted: 03 March 2008 at 9:28am
Hi,

my conection string to the db is:

strDbPathAndName = Server.MapPath("/db/wwForum.mdb")

this works ok when i go to the forum www.mysite.net/forum/

however, as i have subdomain and when i type http://forum.mysite.net
i get following error:

Microsoft JET Database Engine
'C:\Inetpub\ftproot\LocalUser\foldername\mysite\forum\db\wwForum.mdb' 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.


Not sure, what to do.





-------------
Urko



Replies:
Posted By: frufru
Date Posted: 07 March 2008 at 5:16pm
Originally posted by urko urko wrote:

Hi,

my conection string to the db is:

strDbPathAndName = Server.MapPath("/db/wwForum.mdb")

this works ok when i go to the forum www.mysite.net/forum/

however, as i have subdomain and when i type http://forum.mysite.net
i get following error:

Microsoft JET Database Engine
'C:\Inetpub\ftproot\LocalUser\foldername\mysite\forum\db\wwForum.mdb' 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.


Not sure, what to do.





Well personally I would try setting strDbPathAndName to the actual physical path of the database (with the drive name & all the folders before it), like

strDbPathAndName = "C:\blah\blah\blah\db\wwForum.mdb"

That's what I do every time I need to connect to a database... see if that works...


-------------
http://www.random-image.net - Image Randomizers :P

^ Live stats :D ^



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