Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2899
  • Last Modified:

iis 8.5 lock violation

Moving sites to a new server and I am getting this error:

Config Error         Lock violation

How do I resolve that please?
Bob Schneider
Bob Schneider
  • 4
  • 3
3 Solutions
Hi BobbaBuoy,

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

IIS Lock Violation

Good Luck!
Bob SchneiderCo-OwnerAuthor Commented:
I can't find applicationHost.config in %windir%\system32\inetsrv\config\applicationHost.config
Bob SchneiderCo-OwnerAuthor Commented:
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         http://gopherstateevents.com:80/
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!!!
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Bob SchneiderCo-OwnerAuthor Commented:
What should my feature delegations be in iis 8.0 for a classic asp site?
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.
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.
Bob SchneiderCo-OwnerAuthor Commented:
I'm beginning to think that this is a sql server database issue?

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now