Visual Studio giving conflicting error messages and not compiling project.

I'm having really weird issues with Visual Studio 2005. For some reason I'm getting conflicting error messages between the error list and the document itself.

For example one of the errors in the listing says "lnkHome is not defined". However, as soon as I add a line defining lnkHome it gets underlined and tooltip says 'lnkHome is already declared'. Does anyone know what could cause this? I'm assuming it's some reference or file that the IDE uses to help with debugging that's out of sync or pointing to the wrong file. I don't know.

I won't accept "recreate the project" as an answer. I can think of that possibility on my own. It's a rather large project and I'm hoping there's an easier solution.
LVL 14
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You don't need to declare the variable again if it's already declared in your web form. Just make sure your vb class is declared as PARTIAL class.

CyrexCore2kAuthor Commented:
I believe I stumbled upon the solution myself.

There was a file in the "My Project" folder of the solution explorer called Resources.resx. I deleted the file and suddenly everything's working. I'll post back here if the problem pops back up again.
CyrexCore2kAuthor Commented:
Well ever since I did that I haven't had any trouble. Up to this point I wasn't entirely sure what the resx files were used for. Guess I know now. :]

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.