?
Solved

The '..' characters are not allowed in the Path parameter for the MapPath method

Posted on 2003-03-06
2
Medium Priority
?
552 Views
Last Modified: 2012-06-22
The '..' characters are not allowed in the Path parameter for the MapPath method


objConn.Open "DBQ=" & Server.Mappath("../db.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"


I get that error.. I run my own server so if somebody can say how i can solve that problem (is this an server option?)

thx
0
Comment
Question by:terie
2 Comments
 
LVL 3

Accepted Solution

by:
AmericanDogma earned 100 total points
ID: 8081949
Pass the path as a compleet virtual path starting with the forward slash

Server.MapPath("/mydir/mysubdir/db.mdb")
0
 

Author Comment

by:terie
ID: 8082586
thx
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Integration Management Part 2
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question