Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3316488
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:28:31+00:00 2026-05-17T22:28:31+00:00

Wondering if anyone has a solution to this 2010 bug. I have a project

  • 0

Wondering if anyone has a solution to this 2010 bug. I have a project that built fine in Visual Studio 2008 that wont build in 2010 because Visual Studio is holding on to the dll after the application is run ONLY if a designer window is open. I created a really light weight project that shows this problem. If you create an application then create a lib dll. Put one form in the dll, open the form in design view and then run the application. It will run fine, then close the app, go to the code view of the form in design view, and change the code ( I just renamed a single variable) then try to recompile you get the following:

Error 1 Unable to copy file “obj\Debug\customlib.dll” to “build\debug\customlib.dll”. The process cannot access the file ‘build\debug\Customlib.dll’ because it is being used by another process.

If you run Process Explorer and search for the dll, the only process holding the dll is devenv.exe!!!

I have done a ton of searching on this problem and have found similar issues with older versions of Dev Studio where people were able to just add a pre-step to move the locked dll to another name (.locked) and build. Well that works the first time, but the next time you run then edit you are locked out of both the current dll and the one you moved to .locked, so unless I am willing to add code to randomly generate a name for the locked dll, this wont work for me (I don’t want my debug directory size to grow with files never getting deleted.)

I have only found one workaround and if you are in this same boat this is what I have to do to edit and run. I make sure EVERY design view window is closed BEFORE I ever run my project in the debugger. If you close all the open design view windows devenv.exe will not hold the dll.

Does anyone have a better solution to this problem?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:28:31+00:00Added an answer on May 17, 2026 at 10:28 pm

    I’m not sure whether this will work for you or not, but this similar question if you have this line in AssemblyInfo.cs:

    [assembly: AssemblyVersion("2.0.*")]
    

    changing it to:

    [assembly: AssemblyVersion("2.0.0.0")]
    

    will solve this isue.

    The Visual Studio add-on “VSCommands” claims to have a fix for this problem. I’ve not tested it yet, but it also claims to have an in-IDE stackoverflow reputation tracker which intrigues me 🙂

    Your “Close designer before debugging” workaround seems to be working for me (so far), for which I’m very grateful. It was beginning to get to the stage where am large part of my day was spent in the following workflow…

    1. F5

    2. loud expletive

    3. ALT F4

    4. WIN 3

    5. waits impatiently…

    6. F5
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wondering if anyone has a good solution for this. My app is displaying nothing
I have a Visual Studio 2010 solution containing several C# projects, with Resharper 5.1
Wondering if anyone has a solution for this. I would like to present an
I'm wondering if anyone has a recursive solution to converting an array to a
I'm wondering if anyone has ever come across a plug-in for mootools that will
I was wondering if anyone has a good solution to a problem I've encountered
I was wondering if anyone has ever used, built or seen a password recoervy
Wondering if anyone out there has ran into this before.... I'd like to use
This has happened to me 3 times now, and I am wondering if anyone
Just wondering if anyone has any ideas on how we can style templates... Like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.