Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - conection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

conection

 Post Reply Post Reply
Author
urko View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2004
Location: Slovenia
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote urko Quote  Post ReplyReply Direct Link To This Post Topic: conection
    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
Back to Top
frufru View Drop Down
Newbie
Newbie


Joined: 23 February 2006
Location: Canada
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote frufru Quote  Post ReplyReply Direct Link To This Post 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...
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.