Ajax DataGrid Support Product Page

Disallowed Parent Path - file=

Asked 04 Oct 2010 22:16:55
has this question
04 Oct 2010 22:16:55 John Jackson posted:
IIS V6.0 in its default configuration does not support "../" in Include statements. Here's the error message:
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/ajax_servers/dmx_grid2.asp, line 6
The Include file '../Connections/DBConn.asp' cannot contain '..' to indicate the parent directory.

Given the host provider will not enable this feature for security reasons, does anyone have a work around? I have already tired to get Server.MapPath to work without success.

Thanks . . . John


Replied 07 Oct 2010 12:54:08
07 Oct 2010 12:54:08 Miroslav Zografski replied:
Hello John,

Set the path in ajax_servers/dmx_grid2.asp on line 6 to :
./ - that redirects the path to the root folder and I think it will do the job. Try it out.

Replied 09 Oct 2010 16:42:10
09 Oct 2010 16:42:10 John Jackson replied:
Here's the new error message:
Active Server Pages error 'ASP 0126'
Include file not found
/ajax_servers/dmx_grid2.asp, line 6
The include file './Connections/DBConn.asp' was not found.

The only thing I have found that works is to put DBConn.asp in the ajax_servers folder and set line 6 to
<!--#include file="NetSurvey.asp" -->

Thanks . . . John

Edited by - John Jackson on 09 Oct 2010  16:42:56

Reply to this topic