Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-29-2004, 06:27 PM   #1 (permalink)
 
True Techie

Join Date: Feb 2004

Posts: 171

Discusman is on a distinguished road

Default Server.MapPath problem

I have two folders in web folder.

1. ASPPage folder
2. Database folder

My test page is in ASPPage folder and I try to connect it to my test.mdb in Database folder

I put like this:
strDataPath = Server.MapPath("wwwroot\Database\Test.mdb")
strConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;"_
+ " Data Source = " & strDataPath & ";"_
+ " Mode=Share Deny None; User Id=admin;Password=;"

It gives me an error saying the path is invalid and returns this:
path:"c:\inetpub\wwwroot\asppage\wwwroot\database\ test.mdb" is NOT a valid path.

Can someone help? Thx.
Discusman is offline  
Old 03-02-2004, 04:46 PM   #2 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

what's the correct path?
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On