728x90

OS : Windows 2003 Server
IIS Version : 6.0

include file 을 사용했을시
<!--#include file="../abc.asp"-->

(영문일 경우)
Active Server Pages, ASP 0131
Disallowed Parent Path
The Include file '../<filename .ext>' cannot contain '..' to indicate the parent directory.
/<path>/<filename .ext>, line <number>
</number></filename></path></filename>


(한글일 경우)
Active Server Pages 오류 'ASP 0131'
허용되지 않는 부모 경로
/asp/test.asp, 줄 1
'./../abc.asp' Include 파일은 부모 디렉터리를 표시하기 위해 '..'를 사용할 수 없습니다.



위와 같은 에러 메세지를 보게 됐을때는..

include 구문을 변경하거나

<!--#include file="../abc.asp"--> 를 <!--#include virtual="./lib/abc.asp"--> 로 변경


IIS 설정을 변경 해 준다.

(영문일 경우)
IIS -> Home Directory -> App Option -> Enable Parent Paths checkbox  체크


(한글일 경우)
IIS-> 웹사이트 속성 -> 홈디렉터리 -> 구성 -> 옵션 -> 부모경로사용 체크

관련내용 : http://support.microsoft.com/default.aspx?scid=kb;en-us;Q226474
728x90

'Developer > ASP (Active Server Page)' 카테고리의 다른 글

asp 내장함수  (0) 2008.08.07
FileSystemObject개체  (0) 2007.07.03
ASP FormatDateTime  (0) 2007.04.17

+ Recent posts