iis 8.5 lock violation

Posted on 2014-08-24
Last Modified: 2014-08-26
Moving sites to a new server and I am getting this error:

Config Error         Lock violation

How do I resolve that please?
Question by:Bob Schneider
    LVL 3

    Accepted Solution

    Hi BobbaBuoy,

    Check out this like and see if it will help you out.  

    IIS Lock Violation

    Good Luck!

    Author Comment

    by:Bob Schneider
    I can't find applicationHost.config in %windir%\system32\inetsrv\config\applicationHost.config

    Author Comment

    by:Bob Schneider
    Ok here is my web.config for one of my sites:
    <?xml version="1.0" encoding="UTF-8"?>
            <httpErrors errorMode="Custom" defaultPath="/500err.asp" defaultResponseMode="ExecuteURL">
                <remove statusCode="404" subStatusCode="-1" />
                <remove statusCode="500" subStatusCode="-1" />
                <error statusCode="404" path="/404err.asp" responseMode="ExecuteURL" />
                <error statusCode="500" path="/500err.asp" responseMode="ExecuteURL" />
                    <add path="*">
                            <add provider="ASP" verbosity="Verbose" />
                            <add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
                            <add provider="ISAPI Extension" verbosity="Verbose" />
                            <add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,Rewrite" verbosity="Verbose" />
                        <failureDefinitions statusCodes="500" />
                    <clear />
                    <add value="Default.asp" />
                    <add value="Default.htm" />
                    <add value="index.htm" />
                    <add value="index.html" />
                    <add value="iisstart.htm" />
            <identity impersonate="true" />
        <location path="" overrideMode="Deny">
        <location path="" overrideMode="Allow">
            <appSettings />

    Open in new window

    And here is the error that I am getting when trying to open that site:

    Detailed Error Information:
    Module         CustomErrorModule
    Notification         SendResponse
    Handler         ExtensionlessUrlHandler-Integrated-4.0
    Error Code         0x80070021
    Config Error         Lock violation
    Config File         \\?\C:\inetpub\h51web\gopherstateevents\web.config
    Requested URL
    Physical Path         C:\inetpub\h51web\gopherstateevents
    Logon Method         Not yet determined
    Logon User         Not yet determined

    Config Source:
        3:     <system.webServer>
        4:         <httpErrors errorMode="Custom" defaultPath="/500err.asp" defaultResponseMode="ExecuteURL">
        5:             <remove statusCode="404" subStatusCode="-1" />

    I really need to get this resolved asap!!!

    Author Comment

    by:Bob Schneider
    What should my feature delegations be in iis 8.0 for a classic asp site?
    LVL 3

    Assisted Solution

    This may help with the missing applicationHost.config in %windir%\system32\inetsrv\config\applicationHost.config

    I'll start looking at the error for anything I see.
    LVL 3

    Assisted Solution

    ASP.Net applications come pre-wired with a handlers section in the web.config.

    By default, this is set to readonly within feature delegation within IIS.

    Take a look in IIS Manager, under the server name --> feature delegation. If Handler Mappings is set to readonly and your site web.configs have a handlers section, flip the value to read/write and see what happens.

    Author Comment

    by:Bob Schneider
    I'm beginning to think that this is a sql server database issue?

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In my previous Experts Exchange Articles (, most have featured Basic and Intermediate VMware Topics.  As a Virtualisation Consultant, we implement many different virtual…
    The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now