ASP.NET的一个错误,大家快来看看

来源:百度知道 编辑:UC知道 时间:2024/06/12 01:58:17
Server Error in '/' Application.
--------------------------------------------------------------------------------

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"/>
</sys

打开web.config文件,如果没有,则创建一个。
找到<system.web>节点,他应该有个<customErrors />子节点。如果没有,则创建一个该子节点。
为该子节点创建mode属性并把值设置为off

可能是“/”用错了。你调的是什么啊? 你用两个斜杠试试

<customErrors mode="Off"/> 把customErrors的mode设成Off,查看详细错误提示。