« 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: HTTP (Internet), Windows | 144 Comments »
November 27th, 2022 at 19:51
bit.ly/3OEzOZR
bit.ly/3OEzOZR
November 27th, 2022 at 20:44
bit.ly/3gGFqGq
bit.ly/3gGFqGq
November 28th, 2022 at 05:23
bit.ly/3ARFdXA
bit.ly/3ARFdXA
November 28th, 2022 at 07:04
bit.ly/3ig2UT5
bit.ly/3ig2UT5
November 28th, 2022 at 08:30
bit.ly/3GQNK0J
bit.ly/3GQNK0J
November 30th, 2022 at 21:37
bep5w0Df
bep5w0Df
December 2nd, 2022 at 19:12
www
www
December 4th, 2022 at 17:33
icf
icf
December 4th, 2022 at 23:02
24hours-news
24hours-news
December 5th, 2022 at 00:02
rusnewsweek
rusnewsweek
December 5th, 2022 at 00:56
uluro-ado
uluro-ado
December 8th, 2022 at 09:04
Solving
https://schlosserei-herrsching.de/schluesseldienst/
December 9th, 2022 at 17:08
irannews.ru
irannews.ru
December 9th, 2022 at 18:30
klondayk2022
klondayk2022
December 18th, 2022 at 06:29
tqmFEB3B
tqmFEB3B
December 22nd, 2022 at 12:12
Solving
https://cloudrovia.com/how-your-website-host-could-be-costing-your-small-business/
December 24th, 2022 at 01:48
Solving
https://www.britishfalconersclub.co.uk/New_Site/2018/01/18/iaf-newsletter/
December 27th, 2022 at 02:18
Solving
https://lawreview.nmims.edu/sanjana-khatri/
December 30th, 2022 at 04:58
Solving
http://mona-mal-weg.de/beispiel-seite/
January 1st, 2023 at 06:03
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
January 4th, 2023 at 23:18
mangalib
mangalib
January 19th, 2023 at 20:48
x
x
January 20th, 2023 at 05:49
9xflix
9xflix
January 20th, 2023 at 09:49
xnxx
xnxx
January 20th, 2023 at 18:34
… [Trackback]
[…] There you can find 54828 more Information to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
January 20th, 2023 at 21:49
123movies
123movies
February 1st, 2023 at 18:28
… [Trackback]
[…] There you can find 2099 additional Info on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
February 5th, 2023 at 19:20
… [Trackback]
[…] Find 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/ […]
February 12th, 2023 at 16:38
… [Trackback]
[…] Info to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
February 26th, 2023 at 13:24
kinokrad
kinokrad
February 27th, 2023 at 04:06
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
February 28th, 2023 at 04:44
batmanapollo
batmanapollo
March 1st, 2023 at 00:32
batmanapollo.ru – psychologist
batmanapollo.ru – psychologist
March 2nd, 2023 at 01:00
… [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/ […]
March 2nd, 2023 at 17:10
batmanapollo psychologist
batmanapollo psychologist
March 7th, 2023 at 05:32
Solving
https://ritlab.jp/bbs/wforum.cgi?no=7835
March 7th, 2023 at 13:03
elizavetaboyarskaya.ru
elizavetaboyarskaya.ru
March 13th, 2023 at 20:31
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
March 14th, 2023 at 12:17
vsovezdeisrazu
vsovezdeisrazu
March 20th, 2023 at 10:53
2023
2023
March 21st, 2023 at 19:08
… [Trackback]
[…] Info to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
March 26th, 2023 at 20:02
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]
March 27th, 2023 at 16:17
Äèçàéí ÷åëîâåêà
Äèçàéí ÷åëîâåêà
March 28th, 2023 at 18:48
ipsychologos
ipsychologos