用 #inculde file = "../fiel" 报1031错误

今天把Project Server 2002升级到Project 2003, 运行我们自己改写的通过SharePoint Portal Server的验证程序,页面报告如下错误:
Active Server Pages, ASP 0131 (0x80004005)
The Include file '../Library/sig2.asp' cannot contain '..' to indicate the parent directory.


百思不得其解,后来仔细查了一下资料后发现:
In a secure environment, the AspEnableParentPaths property should be set to False
Disabling ASP Parent Paths will only affect the execution of dynamic content on .asp pages. This does not affect the server's ability to reference static content using HTML code (whether it is called from .htm, .html or .asp files).

解决办法:
Open the Internet Services Manager in the Microsoft Management Console (MMC).
Right-click on your Default Web Site and select Properties.
Click the Home Directory tab.
Click the Configuration button.
Click the App Options tab.
Click to select the Enable Parent Paths checkbox.
Click the OK button until you return to the MMC.

这个看来还是安全上的设置

posted on 2004-06-25 14:28  流云之心  阅读(2133)  评论(2编辑  收藏  举报

导航