« How to add entries by UUID to /etc/fstab | Home | Solving Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in ASP.NET 4.0 »
Solving “The name … does not exist in the current context” in ASP.NET
By admin | July 7, 2010
A little-known fact is that in ASP.NET is that you cannot have two copies of the same ASP.NET web page in the same folder, or it will attempt to load elements (such as controls) from the (usually) wrong page, and end up confusing itself, resulting in the error “The name … does not exist in the current context”. This can be very confusing as you try to figure out why it is not working even though it looks like you are doing it correctly.
To resolve this, make sure there are no copies of the page in the same folder (such as things like backup files, accidental copies, etc) in the same folder. Either move them to a different folder or rename their extensions: .aspx to .aspxold and .cs to .csold.
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Internet, Windows | 19 Comments »

November 15th, 2012 at 00:14
I will immediately grab your rss as I can’t find your e-mail subscription link or e-newsletter service. Do you’ve any?
Please let me know in order that I could subscribe.
Thanks.
August 10th, 2025 at 00:26
… [Trackback]
[…] There you will find 56990 additional Info to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
August 13th, 2025 at 02:58
… [Trackback]
[…] There you can find 21551 additional Information to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
September 3rd, 2025 at 15:29
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
September 9th, 2025 at 21:17
… [Trackback]
[…] Find More Info here to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
September 19th, 2025 at 20:06
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
October 3rd, 2025 at 02:16
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
October 4th, 2025 at 13:15
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
October 6th, 2025 at 18:46
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
October 8th, 2025 at 19:28
… [Trackback]
[…] There you can find 12338 additional Information to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
October 29th, 2025 at 15:38
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
November 29th, 2025 at 09:23
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
December 4th, 2025 at 22:57
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
December 15th, 2025 at 19:06
… [Trackback]
[…] Find More Information here to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
December 16th, 2025 at 21:37
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
December 30th, 2025 at 19:33
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
January 9th, 2026 at 23:42
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
January 16th, 2026 at 23:13
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
January 17th, 2026 at 02:12
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]