I am getting the following error, even after I unlock my website. Any reasons?
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Module CustomErrorModule
Notification SendResponse
Handler StaticFile
Error Code 0x80070021
Config Error Lock violation
Config File \\?\C:\Web\En\web.config
<validation validateIntegratedModeConfiguration="false"/>
<httpErrors errorMode="DetailedLocalOnly" defaultPath="/Oops.aspx" defaultResponseMode="ExecuteURL">
<clear></clear>
I have done the following in applicationHost.config
<location path="mysite.net" overrideMode="Allow">
<system.webServer>
<handlers />
<httpErrors />
</system.webServer>
</location>
I solved problem by doing this:
I had a similar Lock violation
error due to defaultPath
. The following fixed it for me:
The only thing that it works is to go and remove manually "defaultPath" from "lockAttributes" attribute of xml node in the file %windir%\System32\inetsrv\config\applicationHost.config
You'll have to decide for yourself whether editing applicationHost.config
is too dirty.
As per my answer to this similar issue;
Try unlocking the relevant IIS configuration settings at server level, as follows:
I edited the applicationHost.config but was still getting the error.
Completely forgot that after you edit applicationHost.config, you have to restart IIS.
I encountered this before and it had something to do with a security setup. Check the web application folder permissions and make sure the following users and groups are included "ASPNET", "IIS_IUSRS", "IUSR".
Don't know if this will work for you or not, but worth a try I suppose.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With