Compdigitec Labs

« | Home | »

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 | 33 Comments »

33 Responses to “Solving “The name … does not exist in the current context” in ASP.NET”

  1. Jaunita Says:
    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.

  2. Esport Says:
    February 18th, 2022 at 06:48

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]

  3. relx Says:
    March 10th, 2022 at 19:14

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]

  4. slot999 Says:
    April 5th, 2022 at 20:10

    … [Trackback]

    […] Here you can find 76311 additional Information to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]

  5. psy- Says:
    June 1st, 2022 at 17:56

    psy-

    psy-

  6. projectio Says:
    June 1st, 2022 at 21:05

    projectio

    projectio

  7. moskva psiholog online Says:
    June 1st, 2022 at 21:49

    moskva psiholog online

    moskva psiholog online

  8. psy online Says:
    June 2nd, 2022 at 13:33

    psy online

    psy online

  9. uels ukrain Says:
    June 5th, 2022 at 07:44

    uels ukrain

    uels ukrain

  10. De quelle manière effectuer un prêt à hypothèque au chomage ? - Mon créditComment faire un prêt immobilier au chomage ? - Mon crédit Says:
    June 10th, 2022 at 03:56

    … [Trackback]

    […] Find More on to that Topic: compdigitec.com/labs/2010/07/07/solving-the-name-does-not-exist-in-the-current-context-in-asp-net/ […]

  11. DPTPtNqS Says:
    June 10th, 2022 at 17:59

    DPTPtNqS

    DPTPtNqS

  12. qQ8KZZE6 Says:
    June 10th, 2022 at 20:40

    qQ8KZZE6

    qQ8KZZE6

  13. D6tuzANh Says:
    June 10th, 2022 at 21:23

    D6tuzANh

    D6tuzANh

  14. SHKALA TONOV Says:
    June 11th, 2022 at 14:30

    SHKALA TONOV

    SHKALA TONOV

  15. Øêàëà òîíîâ Says:
    June 11th, 2022 at 20:06

    Øêàëà òîíîâ

    Øêàëà òîíîâ

  16. russianmanagement.com Says:
    June 12th, 2022 at 01:54

    russianmanagement.com

    russianmanagement.com

  17. chelovek-iz-90-h Says:
    June 12th, 2022 at 05:03

    chelovek-iz-90-h

    chelovek-iz-90-h

  18. dumps with pin site Says:
    June 14th, 2022 at 03:46

    … [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/ […]

  19. 3Hk12Bl Says:
    June 14th, 2022 at 09:00

    3Hk12Bl

    3Hk12Bl

  20. 3NOZC44 Says:
    June 14th, 2022 at 10:12

    3NOZC44

    3NOZC44

  21. 01211 Says:
    June 14th, 2022 at 14:01

    01211

    01211 21546

  22. tor-lyubov-i-grom Says:
    June 15th, 2022 at 02:58

    tor-lyubov-i-grom

    tor-lyubov-i-grom

  23. film-tor-2022 Says:
    June 15th, 2022 at 03:33

    film-tor-2022

    film-tor-2022

  24. hd-tor-2022 Says:
    June 15th, 2022 at 04:12

    hd-tor-2022

    hd-tor-2022

  25. hdorg2.ru Says:
    June 15th, 2022 at 05:44

    hdorg2.ru

    hdorg2.ru

  26. Psikholog Says:
    June 16th, 2022 at 03:33

    Psikholog

    Psikholog

  27. netstate.ru Says:
    June 17th, 2022 at 16:03

    netstate.ru

    netstate.ru

  28. Link Says:
    June 21st, 2022 at 11:32

    Link

    Link

  29. tor-lyubov-i-grom.ru Says:
    June 25th, 2022 at 04:21

    tor-lyubov-i-grom.ru

    tor-lyubov-i-grom.ru

  30. psy Says:
    June 26th, 2022 at 05:58

    psy

    psy

  31. chelovek soznaniye mozg Says:
    June 26th, 2022 at 11:07

    chelovek soznaniye mozg

    chelovek soznaniye mozg

  32. bit.ly Says:
    June 28th, 2022 at 04:45

    bit.ly

    bit.ly

  33. cleantalkorg2.ru Says:
    June 30th, 2022 at 08:24

    cleantalkorg2.ru

    cleantalkorg2.ru

Comments