Web.Config文件中的Runtime Err

| 这可能是一个奇怪的问题,但我被困住了。我将网页托管到公司的网络托管服务中。当我放置已发布的文件时,会抛出此错误:     \'/ \'应用程序中的服务器错误。 运行时错误 说明:服务器上发生应用程序错误。该应用程序的当前自定义错误设置可防止出于安全原因远程查看该应用程序错误的详细信息。但是,可以由运行在本地服务器计算机上的浏览器查看它。 详细信息:要使此特定错误消息的详细信息在远程计算机上可见,请在当前Web应用程序根目录下的\“ web.config \”配置文件中创建一个标记。然后,此标记的\“ mode \”属性应设置为\“ 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的样子:
    <system.web>
    <customErrors mode=\"RemoteOnly\">
    </customErrors>
    
已邀请:
将模式更改为“关”,然后查看实际的错误。 如果错误仍然很模糊,则可能是web.config本身存在错误。     

要回复问题请先登录注册