Pages

Search This Blog

Monday, August 20, 2007

The name 'xxx' does not exist in the current context

When i build my ASP.NET (C#) project in Visual Studio 2005, i got this error message "The name 'Panel2' does not exist in the current context" displayed and the problem is in default.aspx. My code definately have no problem. After debuging and searching for while, i found out the that problem is cause by the back up copy from the same file (copy of default.aspx) that i forget to exclude from the project. The problem solved after i exclude the file from the project.

7 comments:

Tomas! said...

Thanks for your post!

It took me 2 days (not entirely, of course) to realize that I'd made a backup copy of my file.

Your post helped point out my problem.

DUH!!

In blues said...

Welcome Tomas. Happy if able to help to solve your problem :)

Anonymous said...

Thank you, thank you, thank you!

Solved my problem!

Anonymous said...

Same here THX

Unknown said...

Thanks! I was getting mad with that error.

Rose said...

Hello i'm having the same problem, but cant solve it, i had a copy from an existing project, adding the file from it, in my slution y just have one file, y deleted the files, recreated, and still have the same problem. plz help!

Unknown said...

Excellent post. Thanks!!!!