The Many Error Messages of Visual Studio 2005

I’ve been using Visual Studio 2005 for over a year now, and in that time I’ve seen quite a few odd error messages come out of it. After a while I started collecting screenshots. So, that’s about all this post is going to be: a collection of random errors from I’ve seen while using VS2k5.


The build must be stopped before the solution can be closed.

I get this when I try to close and the solution is still compiling. No problem, you’d think. Just cancel the build right? Nope, I get this if I build, cancel, then try to build again. Nothing appears to happen building the second time. I figure something is screwed up and try to restart, but I can’t. Every time I get this I had to kill Visual Studio with Task Manager. These days I just don’t use cancel.


Output file objDebug***.Resources.resources is possibly corrupt

Ah, corrupt resource files. The solution to this has been: 1) open resource file 2) delete stuff! One cause of this may be the vs designer serializing my classes into the resource file, but I think there is some other cause too. (here’s how to keep the designer from serializing your classes)


One or more errors encountered while loading the designer...

Random designer crash. The solution to this one is to close the document and reopen it. Sometimes it works, sometimes not.


Entering break mode failed for the following reason: Source file ... does not belong to the project being debugged.

I don’t have a clue what the cause of this was. The source file did indeed belong to the project, and I did a clean and rebuild just before getting this.


Cannot write to the output file objdebug*** The process cannot access the file *** because it is being used by another process

Here’s a favorite. Cannot write to the file. Fine, I’ll find what’s using it and kill it. According to Process Explorer, nothing but Visual Studio has the file open. I have to restart Visual Studio every time I get this one.


Class aaa must implement bbb.  bbb cannot implement bbb because there is no matching event on interface xxx

This just confuses me: a class cannot implement an interface method because it doesn’t exist, but it must implement the method. I’ve gotten this several times and each time went and checked that the return and parameter types are correct, everything is spelled correctly, etc. The fix: clean and rebuild.


%2

No idea what happened here. Opened a file and the tab shows %2!


Pass exception on to program being debugged?

Not sure what it’s asking me. The debugger had already stopped on the line in the program where the exception was thrown. My answer didn’t seem to make any difference. With either yes or no, the exception continued.


Microsoft (R) Visual Basic Compiler has encountered a problem and needs to close.  We are sorry for the inconvenience.

Yay! the compiler crashed. If this happened once in a while it would be fine. However, this particular window comes up about 40 times in a row. Click Don’t Send or X and another shows up. The compiler is screwed until Visual Studio is restarted. This seems to have been fixed with the service pack.


Error connecting to undo manager of source file ***

I didn’t even know there was an undo manager…


Visual Studio has encountered an unexpected error.

Oh, an unexpected error. What, no more information? This didn’t seem to cause any problems. I clicked ok and kept working.


An error was encountered while opening associated documents the last time this solution was loaded.  Document load is being skipped during this solution load in order to avoid that error.

ok…


Anyway, just thought I’d share the random errors I see all the time. I was kind of wondering if anyone else out there gets nearly as many errors as I do. Many of these errors have occurred with vb.net. C# seems a bit more stable. The service pack seems to have helped a bit too.

Posted in Software Development and tagged . Permalink.

7 Responses to The Many Error Messages of Visual Studio 2005

  1. Pingback: Visual Studio error messages..or...lack of useful information « Pale Musings

  2. Nice one Dave. “Unexpected error” is of course one of my favorites. :)

  3. Sometimes I get the Designer error, but not the others. Fortunately I use C# :)

    Vladimir
  4. Ah, to be able to work all the time in C#….’tis a dweam, within a dweam! C#, that sacrwed institution….

    ahem…anyway…it must be nice Vladimer ;) At least I get to work in C# some of the time, more and more as time progresses.

  5. Pingback: FCP.NoSabes! » Un blog que nos gana :(

  6. Yes, I get most, if not all, of these errors. It’s so frustrating to be constantly having to restart VS.

  7. I haven’t seen many of these in a while now. I don’t know if it’s because of the service pack or because I switched from mostly VB to mostly C#, but Visual Studio 2005 has been pretty good to me lately. I’ve been using 2008 for a few days and haven’t seen any odd errors yet.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>