代码之家  ›  专栏  ›  技术社区  ›  Christian

属性“debug”已锁定在更高级别的配置中

  •  1
  • Christian  · 技术社区  · 9 年前

    我试图上传一个MVC网站到服务器上,但它似乎只是不起作用。在上传mvc站点时,从来没有出现过如此奇怪的错误。 当我导航到网页时获取此消息。

    The attribute 'debug' has been locked in a higher level configuration.
    

    这是什么意思?

    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.
    

    web的某些部分。我一直在胡闹的配置:

    <customErrors mode="Off">
    </customErrors>
    <compilation debug="false" />
    
    1 回复  |  直到 9 年前
        1
  •  0
  •   DavidG    9 年前

    这意味着 debug web.config 只是从中继承,所有XML都只是覆盖或添加到这些值中。

    现在我想它被锁定是为了防止 debug="true" ,这意味着您可以完全删除该属性,这意味着您可以删除整个 compilation