diff --git a/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md b/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md index 854297d3f55..24406f75b62 100644 --- a/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md +++ b/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md @@ -1,26 +1,25 @@ --- type: rule -archivedreason: -title: Do you know that 'httpHandlers' or 'httpModules' sections in web.config must contain a 'remove' or 'clear' element? -guid: 14359e59-b047-4e0b-aef5-f79ccd3eb373 +title: Do you know 'httpHandlers' or 'httpModules' sections in web.config must contain a 'remove' or 'clear' element? uri: httphandlers-sections-in-webconfig-must-contain-a-clear-element -created: 2013-02-06T12:55:03.0000000Z authors: -- title: Adam Cogan - url: https://ssw.com.au/people/adam-cogan -- title: Danijel Malik - url: https://ssw.com.au/people/danijel-malik + - title: Adam Cogan + url: https://ssw.com.au/people/adam-cogan + - title: Danijel Malik + url: https://ssw.com.au/people/danijel-malik related: [] redirects: -- do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element -- do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove3f3f3f-or-a-clear-element -- https-rules-ssw-com-au-do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element -- you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element -- do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-clear-element - + - do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element + - do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove3f3f3f-or-a-clear-element + - https-rules-ssw-com-au-do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element + - you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element + - do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-clear-element +created: 2013-02-06T12:55:03.000Z +archivedreason: null +guid: 14359e59-b047-4e0b-aef5-f79ccd3eb373 --- -If web.config contains a <httpHandlers> or <httpModules> section, that section must contain a <remove... /> or a <clear /> element. +If web.config contains a `` or `` section, that section must contain a `` or a `` element. This basically forces developers to explicitly enable inheritance in nested virtual directories. In 99% of cases this developers won't use inheritance on these two sections, however it causes issues when somebody wants to add a module or handler to the parent virtual directory. @@ -40,7 +39,7 @@ This basically forces developers to explicitly enable inheritance in nested virt ``` -::: +::: bad Figure: Bad example ::: @@ -59,6 +58,6 @@ Figure: Bad example ``` -::: +::: good Figure: Good example :::