locked
Active Server Pages error 'ASP 0131', Disallowed Parent Path RRS feed

  • 问题

  • 项目是很老的ASP项目,想在IIS Express 7.5 上运行,结果出现如下错误,

    Active Server Pages error 'ASP 0131'

    Disallowed Parent Path

    /xxx/xxx.asp, line 42

    The Include file '../xxxxxx.asp' cannot contain '..' to indicate the parent directory. 

    请问如何解决了?

    可否修改IIS Express 的配置文件来解决问题?

    2014年8月8日 6:56

答案

  • 你需要在iis中设置允许父路径

    参见

    http://www.ghost519.com/article/140.html

    http://beyaz.net/tr/ipucu/entry/270/


    【孟子E章】

    2014年8月9日 7:33
    版主
  • 你的答案是在IIS上,我的问题是如何在IIS Express上修改了?

    1. 在 ...\我的文档\IISExpress\config\applicationhost.config中63行附近配置 如下

          

          (将Deny改为Allow)

    2. 在网站根目录中的web.config(没有可以自己新建)配置如下

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <asp enableParentPaths="true"/>
        </system.webServer>
    </configuration> 

        3.完成。启动网站。

    From:http://www.cnblogs.com/errorx/archive/2013/06/09/3128346.html


    ASP.NET Forum
    Other Discussion Forums
    FreeRice Donate
    Issues to report
    Free Tech Books Search and Download

    • 已标记为答案 JimmyGates 2014年10月28日 10:14
    2014年9月16日 8:32

全部回复

  • 你需要在iis中设置允许父路径

    参见

    http://www.ghost519.com/article/140.html

    http://beyaz.net/tr/ipucu/entry/270/


    【孟子E章】

    2014年8月9日 7:33
    版主
  • 你的答案是在IIS上,我的问题是如何在IIS Express上修改了?

    2014年9月15日 7:03
  • 你的答案是在IIS上,我的问题是如何在IIS Express上修改了?

    1. 在 ...\我的文档\IISExpress\config\applicationhost.config中63行附近配置 如下

          

          (将Deny改为Allow)

    2. 在网站根目录中的web.config(没有可以自己新建)配置如下

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <asp enableParentPaths="true"/>
        </system.webServer>
    </configuration> 

        3.完成。启动网站。

    From:http://www.cnblogs.com/errorx/archive/2013/06/09/3128346.html


    ASP.NET Forum
    Other Discussion Forums
    FreeRice Donate
    Issues to report
    Free Tech Books Search and Download

    • 已标记为答案 JimmyGates 2014年10月28日 10:14
    2014年9月16日 8:32
  • 你的答案是在IIS上,我的问题是如何在IIS Express上修改了?

    1. 在 ...\我的文档\IISExpress\config\applicationhost.config中63行附近配置 如下

          

          (将Deny改为Allow)

    2. 在网站根目录中的web.config(没有可以自己新建)配置如下

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <asp enableParentPaths="true"/>
        </system.webServer>
    </configuration> 

        3.完成。启动网站。

    From:http://www.cnblogs.com/errorx/archive/2013/06/09/3128346.html


    ASP.NET Forum
    Other Discussion Forums
    FreeRice Donate
    Issues to report
    Free Tech Books Search and Download

    Very good, thanks a lot.
    2014年10月28日 10:14