Update on VS.NET 2005 issues

08 Sep
by mjeaton, posted in Uncategorized   |  Comments Off

Sometimes it’s best to try the simplest things first.  In this case, I thought I had gone through the most basic troubleshooting steps, but about an hour ago, I decided to try something really off the wall and change the line of code that creates the object of the type that couldn’t be found.

First, let me say that I was / am properly importing the namespace in which the “unknown” class lives.  This has not changed for weeks.

Imports . .Business.Common

The original line of code that was raising the compile error was:
Private _errorMessages as IErrorMessageManager = new ErrorMessageManager()

I changed it to:

Private _errorMessages as IErrorMessageManager = new . .Business.Common.ErrorMessageManager()

Everything compiles fine now.  Just to make sure, I went through all the steps I outlined earlier (removing temp files, restarting IIS, getting latest, etc.).  I also switched the line of code back to the original and recompiled just to make sure the error still occurred.  It did, so I put my new code back in.

Anyone care to explain what the hell was wrong with the original line of code considering my Import statement was/is correct?

Can I get back to billing my hours now? ;-)

Comments are closed.