I am running Umbraco 7.2.8 The site on a commercial server works fine and has been running smoothly for quite a number of years. I now want to make some changes and am trying to get the site to run on a Windows 10 workstation (a virtual machine running on Linux if that matters) so that I can test come code changes.
The IIS version installed on the workstation by default is Version 10. I have made a V4.0 Classic application pool. The identity for that pool is NetworkService. I have granted file system full control to NetworkService.
When I try to browse the site on the workstation, I get a 500.19 error:
Config Error - 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".
Do you mean to remove the entire handlers section? The reason I ask is that the config file was copied from the running production site. Here's the entire section:
It turns out there is a very large body of discussion in StackOverflow on this subject. It apparently has to do with the applicationHost.config file located at %windir%\system32\inetsrv\config folder
Thanks very much for your help, it got me pointed in the right direction. Now I 'just' have to figure out the right settings for that config file. IOW it's not an Umbraco problem, it's an IIS problem.
BTW, if anyone has already figured this out, please post your solution.
Since I'm running Windows 10 on a virtual machine, this starts from a clean install.
In the Control Panel under Programs and Features, select Turn Windows Features on or off
Select appropriate .NET Framework
Select Internet Information Services
Web Management Tools
World Wide Web Services
Install the IIS URL Rewrite Module from the MS website
Launch the IIS Manager
Create a new application pool '4.0 Classic'
Set the user agent for that pool to NetworkService
Point the Default website to the Umbraco file folder
Set file and folder permissions.
Give IUSR and NetworkService necessary permissions
Launch the website.
You will get a 500.19 Config error
"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"."
The stack trace will point to 'handlers' in your config file
Invalid Configuration Data Error 500.19
Hello,
I am running Umbraco 7.2.8 The site on a commercial server works fine and has been running smoothly for quite a number of years. I now want to make some changes and am trying to get the site to run on a Windows 10 workstation (a virtual machine running on Linux if that matters) so that I can test come code changes.
The IIS version installed on the workstation by default is Version 10. I have made a V4.0 Classic application pool. The identity for that pool is NetworkService. I have granted file system full control to NetworkService.
When I try to browse the site on the workstation, I get a 500.19 error:
Config Error - 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".
Config Source:
194: </modules>
195: <handlers accessPolicy="Read, Write, Script, Execute">
196: <remove name="WebServiceHandlerFactory-Integrated" />
I've got no clue where to go from here.
Thanks for any help: Jon
DO you have those settings in your web.config? if so, just comment them out as they shouldn't be there.
Thanks for the answer.
Do you mean to remove the entire handlers section? The reason I ask is that the config file was copied from the running production site. Here's the entire section:
try this
https://stackoverflow.com/questions/34199976/iis-config-error-this-configuration-section-cannot-be-used-at-this-path
That worked. I also had to unlock the 'modules' section in the same way. However, I'm still not out of the woods. Now I get:
HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.
Folder permissions maybe?
It turns out there is a very large body of discussion in StackOverflow on this subject. It apparently has to do with the applicationHost.config file located at %windir%\system32\inetsrv\config folder
Thanks very much for your help, it got me pointed in the right direction. Now I 'just' have to figure out the right settings for that config file. IOW it's not an Umbraco problem, it's an IIS problem.
BTW, if anyone has already figured this out, please post your solution.
Hi!
I’ve seen this error several times due to missing URL Rewrite module in IIS,
https://www.enkelmedia.se/blogg/2021/3/31/iis-http-error-500-19-with-umbraco-and-other-sites
Have you tried this?
Thank you Markus - that fixed it. BTW, The Web Platform Installer has been retired by MS. The Url Rewrite Module can be gotten directly at: https://www.iis.net/downloads/microsoft/url-rewrite
Great to hear! Thank you for the heads up about Web Platform Installer, I've updated the blog post with the link you provided.
How to run Umbraco on a Windows workstation.
Since I'm running Windows 10 on a virtual machine, this starts from a clean install.
In the Control Panel under Programs and Features, select Turn Windows Features on or off
Select appropriate .NET Framework
Select Internet Information Services
Web Management Tools
World Wide Web Services
Install the IIS URL Rewrite Module from the MS website
Launch the IIS Manager
Create a new application pool '4.0 Classic'
Set the user agent for that pool to NetworkService
Point the Default website to the Umbraco file folder
Set file and folder permissions.
Launch the website.
You will get a 500.19 Config error
"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"."
The stack trace will point to 'handlers' in your config file
Follow the instructions here to fix that: https://stackoverflow.com/questions/34199976/iis-config-error-this-configuration-section-cannot-be-used-at-this-path
At that point you should be able to browse your Umbraco website
Thanks again to Huw Reddick and Markus Johansson for their help
is working on a reply...