Results 1 to 10 of 10

Thread: [RESOLVED] Files locked even when application is not running

  1. #1

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Resolved [RESOLVED] Files locked even when application is not running

    Why is visual studio locking my files even when application is not running?
    The files are not under any source control or readonly either.

    Before this it didn't allow me to edit the aspx.vb while debugging, though I can do that in other projects. So I think something is seriously bad in this project.

    Any ideas?

    Name:  vs-lockup-problem.JPG
Views: 150
Size:  207.6 KB
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Files locked even when application is not running

    Hey Pradeep,

    I can't say that I have seen this behaviour in Visual Studio.

    The only thing that springs to mind is that you are editing the project from a non trusted location, perhaps a network share somewhere. Is this the case?

    Gary

  3. #3

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Files locked even when application is not running

    No. It is on my local machine and in the same folder where I keep all my other projects.
    I think something is corrupt in this project, or maybe some setting is doing this.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Files locked even when application is not running

    Hmm, strange. I am not aware of a setting that would do this, but that isn't to say that there isn't one.

    Do you have a back up of the project that you could store to test it?

    Gary

  5. #5
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Files locked even when application is not running

    Some test,other than this i also can't think of something.
    If you are using IIS then try to run it without it.
    Also if you are creating the a new web project try to create it as a new website.
    I am not mentioning win7 because from the design i see you are on XP.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Files locked even when application is not running

    Hey,

    Not sure if this is related or not, but it turned up as the result of a quick google:

    http://bphillips76.spaces.live.com/b...6166!365.entry

    Gary

  7. #7

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Files locked even when application is not running

    I ended up creating a new blank solution. Then adding new projects to it with same type and same name as my original ones. And then adding files from old projects to new one.

    It is working now. So my problem is resolved. Though I still don't know why it happened or which file exactly was corrupt. Nor I'm sure whether the problem will come back again in this new project or not.
    But for now it is resolved.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Files locked even when application is not running

    Very weird!!!

  9. #9
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Files locked even when application is not running

    I just wanna add here that today i had a problem with the page not firing the load event.
    No mater what i tried the load wouldn't fire.So i created a new web site , copy-pasted and magically it worked(?). This in Vs2008 latest service pack.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  10. #10

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Files locked even when application is not running

    I'll mark this thread resolved since I'm no longer facing the problem with new solution.
    I couldn't get the time to investigate into it due to project deadlines; though if find something I'll post it here.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width