初学问题:aspx无法在子目录下运行的问题
根目录都是asp程序,在子目录中调用一个aspx程序,总是报错:Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
在本地机调试,根目录下运行时完全没有问题的,请问要怎么样解决呢?我的web。config文件如下:
<?xml version="1.0" encoding="gb2312" ?>
<configuration>
<appSettings>
<add key="BottomDisplay" value="Ken 2007.5"/>
</appSettings>
<system.web>
<globalization
requestEncoding="gb2312"
responseEncoding="gb2312" />
<compilation debug="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
</compilation>
<authentication mode="Windows"/>
<pages theme="SkinFile"/>
</system.web>
</configuration>
--------------------编程问答-------------------- 在IIS属性里把启用父路径选上看看 --------------------编程问答-------------------- 父路径原本就是启用的了。我的服务器是2000server的,有影响吗?
补充:.NET技术 , ASP.NET