« Previous Next »

Answered Thread: lock violation

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

Average Rating Rate It (5)

RSS

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

Sort Posts:

  • 08-01-2009, 4:44 AM

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

    lock violation

    I have transferred a classic asp website onto a new windows server 2008 / iis 7 setup.

    Previously (iis 6) I had a custom error 500  page that logged any server 500 errors into a database.

    The same error page does not work on the new server. I have set the custom error page in iis manager and the page displays when there is an error but the Server.GetLastError() doesn't seem to hold any info about the error, so nothing is logged in the db (line number etc).

    I tried to do the fix by davidtg in this post but when I try I get an error popup saying lock violation in iis manager.

    Any ideas?

  • 08-05-2009, 2:58 AM In reply to

    Re: lock violation

    Hi,

    You can run the following command to unlock the httperror section:

    %windir%\System32\inetsrv\appcmd unlock config -section:system.webserver\httperror

    For more detailed information, please refer to:
    How to Use Locking in IIS 7.0 Configuration
    http://learn.iis.net/page.aspx/145/how-to-use-locking-in-iis-70-configuration/

    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-10-2009, 12:27 PM In reply to

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

    Re: lock violation

     When I run that I get an "unknown config section" error message

  • 08-10-2009, 9:54 PM In reply to

    Re: lock violation

    Hi,

    Sorry, my mistake. The command should be:

    %windir%\System32\inetsrv\appcmd unlock config -section:system.webserver/httperrors

    For more information about this section, you can refer to:
    HTTP Errors <httpErrors>
    http://www.iis.net/ConfigReference/system.webServer/httpErrors

    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-11-2009, 3:50 AM In reply to

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

    Re: lock violation

    I tried your new command and it worked, but I still get the lock violation error
  • 08-11-2009, 3:58 AM In reply to

    Re: lock violation

    Hi,

    Could you post the full error message or a screen shot here ?

    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-11-2009, 4:06 AM In reply to

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

    Re: lock violation

    How do I upload a screenshot to the post?

  • 08-11-2009, 4:20 AM In reply to

    Re: lock violation

    Hi,

    Currently,we can't upload image directly at this forum. But you can insert the mage with a valid image URL.

    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-11-2009, 4:29 AM In reply to

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

    Re: lock violation

    Ok, please see screenshot

  • 08-11-2009, 4:49 AM In reply to

    Re: lock violation

    Hi,

    Please try the following command:

    %windir%\System32\inetsrv\appcmd unlock config "SwimClubManager" -section:system.webserver/httperrors

    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-11-2009, 4:53 AM In reply to

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

    Re: lock violation

    Tried - no luck. Still get the lock violation popup

  • 08-12-2009, 12:03 PM In reply to

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

    Re: lock violation

     Any ideas?

  • 08-13-2009, 5:41 AM In reply to

    Re: lock violation

    Hi,

    It seems this issue is not caused by the configuration system's lock feature. Could you run Process Monitor to determine if the web.config file is locked by another program? Open Process Monitor and isolate the web.config file path, then reproduce this issue.

    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-17-2009, 10:34 AM In reply to

    • e-smile
    • Not Ranked
    • Joined on 08-17-2009, 2:31 PM
    • Posts 1

    Re: lock violation

    Hi,

    I have same problem and couldn't solve :(

    I've done my best but nothing has changed. Need any ideas to solve this problem.

     

    Thanks

  • 08-26-2009, 3:28 PM In reply to

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

    Re: lock violation

     I have ran process monitor and filtered it to my websites folder and nothing shows when I run the command again.

     Any more ideas?

Page 1 of 3 (36 items) 1 2 3 Next >
Microsoft Communities