unexpected error creating debug information

Date Published: 11 August 2003

unexpected error creating debug information

I keep running into this issue in my multi-project VS.NET solutions. For some reason, something is locking the dll(s) in the /obj/ folder of library components. The fix that I have at the moment is as follows:

  1. Shut down VS.NET
  2. Browse to the project in windows explorer
  3. Delete the /obj/ folder.
  4. Delete the project outputs (.dll and .pdb) from /bin (not sure this step is necessary)
  5. (can’t hurt, might help) — delete the project outputs from any other project /bin folders in the solution that is having issues.
  6. Restart VS.NET
  7. Rebuild
  8. Laugh the next time you hear that DLL Hell is no more in .NET…

Update: Just deleting /obj/ after closing VS.NET does it. Ambrosepointed me to prcview.exeand that demonstrated that it is in fact devenv.exe locking the file, so it’s VS.NET’s own fault, not Index Server or anything else that is to blame.

Listening to: Disturbed – Remember

Steve Smith

About Ardalis

Software Architect

Steve is an experienced software architect and trainer, focusing on code quality and Domain-Driven Design with .NET.