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 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 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.
I solved problem by doing this:
I got this message after sharing my folder with a coworker. The folder had a lock on it (in Windows explorer). I had to release the lock (by granting a permission to all authenticated users, for further instructions view https://www.howtogeek.com/howto/17117/remove-the-lock-icon-from-a-folder-in-windows-7/). Once the lock has been removed, the error disappeared.
User contributions licensed under CC BY-SA 3.0