« Previous Next »

Thread: lock violation

Last post 11-27-2009 3:08 PM by bpsintl. 35 replies.

Average Rating Rate It (5)

RSS

Page 2 of 3 (36 items) < Previous 1 2 3 Next >

Sort Posts:

  • 08-26-2009, 9:56 PM In reply to

    Re: lock violation

    Hi,

    Could you send me the applicationhost.config file and the web.config file (Click the Contact Button)? I'll review the config files to see if there is any corrupt data.

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 08-27-2009, 3:46 AM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

    Hi I'd rather not send those. Is there anything I can check in those myself?
  • 08-27-2009, 6:22 AM In reply to

    • moze82
    • Not Ranked
    • Joined on 08-27-2009, 10:12 AM
    • Posts 1

    Re: lock violation

    I've been struggling with a similar issue (if not the same issue) for the last couple of days, and I've found a work around, but I'm not sure if it's the best solution. I noticed that almost all the native Modules for my machine at the root level were showing as "Locked" (or within the section of the applicationHost.config module items had the "lockItem" attribute set to "true"). I went about unlocking them through IIS Manager, and once that was done I can access the problematic site's modules configuration. Hope this helps! Nat
  • 08-27-2009, 2:01 PM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

     I've already tried that but thanks anyway. I have just unlocked the custom error module then tried again just to make sure, still get the error popup.

    It's driving me mad now!

  • 08-29-2009, 6:25 AM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

     Any other ideas?

  • 09-02-2009, 2:53 PM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

    Anyone?

  • 09-03-2009, 1:11 PM In reply to

    Re: lock violation

    Could you give more information about when you see this error? Is it while browsing a specific site, or is it when using IIS Manager?

    Could you run:

    appcmd list config

    that will list all the configuration at the server and if something is broken it will be flagged.

    However more likely it is due to a site or application violating a lock, so for that run:

    appcmd list config "Your Site"

    or

    appcmd list config "Your Site/YourApp"

    This will probably give more details around where the lock violation is occurring, please provide those details.

  • 09-03-2009, 1:55 PM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

     I get this error when I am in IIS manager and I try to set a custom error page (500 error) on any website. That popup appears.

     When I run that top command, my screen scrolls so fast I can't read it

     

     

  • 09-03-2009, 2:30 PM In reply to

    Re: lock violation

    Are you connected locally to the machine (or using IIS to connect remotely to another server)? Are you running Service Pack 2?

    Could you open %windir%\system32\inetsrv\config\applicationHost.config and search for httpErrors and post the following ones:

    You will find a section definition something like:

    <section name="httpErrors" overrideModeDefault="Deny" />

    then you will find it inside something like: <httpErrors>, is it inside a <location path=> element, or as a top element? Is it ever inside a <location path, and if it is what is the overrideMode attribute in the <location?

    Finally could you tell us in the Status Bar of IIS manager when you are inside the Error Pages feature what is shown on it? Is it saying something like "Configuration 'localhost' applicationHost.config, <location..."  or is it saying something like '... web.config'?

     

  • 09-03-2009, 3:17 PM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

     Hi, yes I am connected locally and have service pack 2

    I have found this

    <section name="httpErrors" overrideModeDefault="Allow" />

    As a top element. There is nothing inside <location path that mentions httpErrors
  • 09-03-2009, 11:35 PM In reply to

    • jimrPA
    • Top 100 Contributor
    • Joined on 06-02-2008, 1:20 PM
    • Posts 62

    Re: lock violation

    Hi,

    If you open up configuration editor, goto system.webServer/httpErrors and unlock the defaultPath.

     

    Thanks,

    Jimmy

  • 09-04-2009, 2:46 AM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

    Where is configuration editor please? (I'm new to iis 7)
  • 09-04-2009, 2:16 PM In reply to

    Re: lock violation

    You can install it from:

    http://www.iis.net/extensions/AdministrationPack

     

    However my guess is that it will already showed unlock based on the Allow mentioned above. Could you share the settings you are using to add it? Also, do you see a lockAttributes or lockItem inside the <httpErrors> element?

     

  • 09-05-2009, 6:32 AM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

     This is my <httpErrors section:

    <httpErrors lockAttributes="allowAbsolutePathsWhenDelegated,defaultPath">
                    <error statusCode="401" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="401.htm" />
                    <error statusCode="403" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="403.htm" />
                    <error statusCode="404" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="404.htm" />
                    <error statusCode="405" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="405.htm" />
                    <error statusCode="406" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="406.htm" />
                    <error statusCode="412" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="412.htm" />
                    <error statusCode="500" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="500.htm" />
                    <error statusCode="501" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="501.htm" />
                    <error statusCode="502" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="502.htm" />
                </httpErrors>
     

  • 09-18-2009, 10:02 AM In reply to

    • bpsintl
    • Top 500 Contributor
    • Joined on 05-19-2009, 4:11 AM
    • Posts 22

    Re: lock violation

    Anyone?
Page 2 of 3 (36 items) < Previous 1 2 3 Next >
Microsoft Communities