Jan Schreuder on .Net

.Net code samples, experiences, observations

View my professional profile on LinkedIn

Recent Posts

Tags

News

  • Inappropriate comments will be deleted at my discretion.

    The information and code samples in this weblog is provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the merchantability and/or fitness for a particular purpose.

Community

Email Notifications

Tool suppliers

Tools

General

Microsoft

Favorite blogs

Archives

Unexpected error creating debug information file

This morning, when I started my project and tried to recompile, Visual Studio 2003 started complaining. It gave me the following error message:

unexpected error creating debug information file 'X:\Projects\.....\bin\debug\project.pdb.

I tried deleting the pdb file, and I could delete it. So the file was not locked. I got the original project from Source Safe, and the same problem occured. After searching the internet I found several links describing the problem and possible solutions:

  1. GotDotNet mentions that another process is using the component you're trying to compile. Stop that process.
  2. John Tobler had the same problem and mentioned it on his web log. Several solutions are offered by other bloggers there.

These tips did not work for me though. I ended up deleting the entire Obj tree in my project folder. Everything was fine after that.

Comments

Anita B. said:

The problem is occurring because you have to check out the bin and obj folders in your project.  When you check out the project, it doesn't automatically checkout the bin and obj folders.   I hope this helps

# August 14, 2008 7:55 PM

Jan Schreuder said:

yes, that usually locks the files. I never check in objects or binaries. So still don't understand why this happened. It only happened once.

# August 14, 2008 8:32 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)