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

  • Home
  • SEARCH
  • 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 314171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:10:32+00:00 2026-05-12T08:10:32+00:00

I am working on a solution consisting of 8 .NET projects. Since I am

  • 0

I am working on a solution consisting of 8 .NET projects. Since I am practicing TDD, I have to re-compile my solution very often. Lately I have been getting the following error about every second time when trying to compile:

Error 2 Unable to copy file
“obj\Debug\Zeiterfassung.Tests.dll” to
“bin\Debug\Zeiterfassung.Tests.dll”.
The process cannot access the file
‘bin\Debug\Zeiterfassung.Tests.dll’
because it is being used by another
process.

Zeiterfassung.Tests.dll is the dll generated by one of my projects (it’s the unit testing project). It’s always this dll that cannot be copied and causes the error. Everything else works fine 100% of the time.

In about 9/10 times I can “solve” the problem by recompiling my solution again. But when the problem is getting really bad, the project just won’t compile successfully no matter how often I try and I have to restart the IDE.

I used microsoft’s handle.exe to ascertain which process is locking the DLL and it is devenv.exe. I also tried deleting the DLL by hand and it really can’t be deleted until I restart the IDE.

Last but not least, I tried adding <GenerateResourceNeverLockTypeAssemblies>true</GenerateResourceNeverLockTypeAssemblies> to my project as suggested in another forum, but this did not help.

Please help! This problem is really starting to drive me nuts.

Edit: I might also add that I made sure my unit tests are finished when this problem occurrs. Still, the dll remains locked. I am running my tests via the Resharper unit test explorer.

  • 1 1 Answer
  • 0 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-12T08:10:32+00:00Added an answer on May 12, 2026 at 8:10 am

    Looks like the bug disappeared (fingers crossed…) after I moved my test project, checked out an earlier version of the project from the repository and replaced all code files with the newer versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 242k
  • Answers 242k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer 1) By default the CSS Width property is set to… May 13, 2026 at 7:34 am
  • Editorial Team
    Editorial Team added an answer First advice: Turn arround! ;-) If you can't then I… May 13, 2026 at 7:34 am
  • Editorial Team
    Editorial Team added an answer Most shells support the source built-in, which executes a script… May 13, 2026 at 7:34 am

Related Questions

I'm working on a multi-user internet database-driven website with SQL Server 2008 / LinqToSQL
I'm working on getting a Visual C++ 2005 solution to compile in unicode. However,
For part of a web application the user needs to import some data from
Hi All I am currently having an issue calling a WCF service from a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.