Welcome to ASP.NET Guild

Be sure to come back often and tell others. If you have any tips, tricks, examples, please email them to me at chris.williams@techguilds.com and I will post them. Check out our ASP.NET QuickStart and C# QuckStart Libraries. Below is my latest articles.

Tuesday, February 20, 2007

The 'name' does not exist in this context

Sometimes Visual Studio 2005 will hiccup and you will get the error:

"The 'name' does not exist in this context"

I fixed it by doing the following:

  • Exclude file from project

  • Build

  • Exit VS 2005

  • Open VS 2005

  • Add back to project and build again

This fixes it. The other alternative is to reference the control directly in the content placeholder.
You can check out the Microsoft Forums posting for it at:

If you have any tips, tricks, fixes that you think would help others please email them to me at chrisw_88@hotmail.com and I will post them here.

Are you a .NET Developer or Contractor interested in working with Sitecore or Dynamics CRM?

Apply for our Mentorship Program. If accepted, we will mentor you on Sitecore and provide you with project to help you build your skills and make some money at the same time. If you are interested send your resume with details on why you want to work with Sitecore or Dynamics CRM to: Chris Williams - chris.williams@techguilds.com or Dennis Augustine - dennis.augustine@techguilds.com We look forward to working with you to achieve your goals.