This topic is locked
[SOLVED]

 The '..' characters are not allowed in the Path parameter

5/3/2008 12:14:57 PM
ASPRunnerPro General questions
H
heets author

I know I am not the first to encounter this but I have searched the forums and the only solutions I have found require changing the server settings. My application is running on a hosted server and they consider it a security threat to enable parent paths (just like the Microsoft web page says)
How can I get around this on a hosted server situation?
Error message = The '..' characters are not allowed in the Path parameter for the MapPath method.
My connection string = <%

strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("..\phase2db\PeaceWorksWeb.mdb") & ";Jet OLEDB:Database Password="

%>
Any suggestions?
Thanks,

Bruce

H
heets author 5/3/2008

Opps! Never mind. I just hand edited the Dbconnection file and used a non virtual path directly to the database and it worked fine.

Sergey Kornilov admin 5/3/2008

Just in case here is the article that explains how to use the physical path instead of virtual.

http://www.xlinesoft.com/asprunnerpro/arti...se_strategy.htm