zoukankan      html  css  js  c++  java
  • ASP.NET中禁止继承IIS中web.config根目录的配置

    异常信息:

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

    Parser Error Message: The entry 'XXXXX' has already been added.

    此错误一般是访问虚拟目录时抛出的异常 导致此异常的原因是因为虚拟目录中项目默认继承了主站的配置文件出现配置冲突

    解决方案:在主站配置文件中禁止继承允许重写

      <configuration>

    <configSections> </configSections>

          <location path="." allowOverride="true" inheritInChildApplications="false">

            <system.web>

              <httpModules></httpModules>

          </system.web>

        </location>

      </configuration>

  • 相关阅读:
    简单理解同步与异步
    Python3.x 安装Scrapy框架
    Python命名规范
    python 02/100例
    raw_input与input的区别
    二叉排序树
    串和广义表
    数据结构整理 第一章
    时间复杂度
    Music
  • 原文地址:https://www.cnblogs.com/huaguduo/p/4649510.html
Copyright © 2011-2022 走看看