"locked by another application" problem

Discussion in 'ASP .Net' started by Ing. Rajesh Kumar, Jul 6, 2004.

  1. I am loading an XML File and validating that against an XSD file. Sometimes
    when there is an error in the XML file, system locks the file and I am not
    able to change the content of the file. When saving, It says that the file
    may have been "locked by another application". Now i cannot fix the error
    because i cannot save the changes. Probably the file get locks by
    aspnet_wp.exe. How can I fix this ? I tried to load the file as readonly but
    does not help.
    Thanks in advance
    Raja
    Ing. Rajesh Kumar, Jul 6, 2004
    #1
    1. Advertising

  2. Ing. Rajesh Kumar

    Scott Allen Guest

    In development you could go to the command line and run IISRESET.

    If you need to track down which process actually has the file locked,
    you can use FileMon from sysinternals:
    http://www.sysinternals.com/ntw2k/source/filemon.shtml

    HTH,

    --
    Scott
    http://www.OdeToCode.com

    On Tue, 6 Jul 2004 23:55:08 +0200, "Ing. Rajesh Kumar" <iambad(Without
    This)@post.cz> wrote:

    >I am loading an XML File and validating that against an XSD file. Sometimes
    >when there is an error in the XML file, system locks the file and I am not
    >able to change the content of the file. When saving, It says that the file
    >may have been "locked by another application". Now i cannot fix the error
    >because i cannot save the changes. Probably the file get locks by
    >aspnet_wp.exe. How can I fix this ? I tried to load the file as readonly but
    >does not help.
    >Thanks in advance
    >Raja
    >
    Scott Allen, Jul 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    3,967
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,145
    Ted Miller
    Sep 13, 2003
  3. Merek
    Replies:
    0
    Views:
    1,955
    Merek
    Dec 3, 2003
  4. Scott Meddows
    Replies:
    1
    Views:
    385
    John Saunders
    Jun 8, 2004
  5. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    543
    Bullschmidt
    May 11, 2004
Loading...

Share This Page