{"id":220,"date":"2014-09-07T14:21:17","date_gmt":"2014-09-07T14:21:17","guid":{"rendered":"http:\/\/blog.catalystlogic.com.au\/?p=133"},"modified":"2026-03-01T01:44:18","modified_gmt":"2026-02-28T14:44:18","slug":"iprestrictionmodule-500-19-error","status":"publish","type":"post","link":"http:\/\/54.253.247.134\/?p=220","title":{"rendered":"&lt;ipSecurity&gt; &#038; IpRestrictionModule 500.19 Error"},"content":{"rendered":"<p>Azure Web Sites support IP restriction in the web config, as demonstrated by <a href=\"http:\/\/azure.microsoft.com\/blog\/2013\/12\/09\/ip-and-domain-restrictions-for-windows-azure-web-sites\/\" target=\"_blank\">Stefan Schackow's MSDN Blog<\/a>.<\/p>\n<p>I then add the following to my web.config<\/p>\n<p>While this works great for Azure, for local builds, you may encounter:<\/p>\n<h3 style=\"color: #cc0000;\">HTTP Error 500.19 - Internal Server Error<\/h3>\n<h4 style=\"color: #cc0000;\">The requested page cannot be accessed because the related configuration data for the page is invalid.<\/h4>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"20%\">Module<\/td>\n<td>IpRestrictionModule<\/td>\n<\/tr>\n<tr>\n<td>Notification<\/td>\n<td>BeginRequest<\/td>\n<\/tr>\n<tr>\n<td>Handler<\/td>\n<td>ExtensionlessUrlHandler-Integrated-4.0<\/td>\n<\/tr>\n<tr>\n<td>Error Code<\/td>\n<td>0x80070021<\/td>\n<\/tr>\n<tr>\n<td>Config Error<\/td>\n<td>This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault=\"Deny\"), or set explicitly by a location tag with overrideMode=\"Deny\" or the legacy allowOverride=\"false\".<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The culprit was the snippet at the\u00a0bottom of my applciationHost.config<\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;location path=\"\" overrideMode=\"Deny\"&gt;\n  &lt;system.webServer&gt;\n    &lt;security&gt;\n    &lt;\/security&gt;\n  &lt;\/system.webServer&gt;\n&lt;\/location&gt;<\/pre>\n<p>Commenting out the entire location tag resolves the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure Web Sites support IP restriction in the web config, as demonstrated by Stefan Schackow's MSDN Blog. I then add the following to my web.config While this works great for Azure, for local builds, you may encounter: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data <a class=\"read-more\" href=\"http:\/\/54.253.247.134\/?p=220\">...continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-net","category-azure"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220"}],"version-history":[{"count":1,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":229,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions\/229"}],"wp:attachment":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}