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

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

  1. bit.ly/3OEzOZR Says:
    November 27th, 2022 at 19:51

    bit.ly/3OEzOZR

    bit.ly/3OEzOZR

  2. bit.ly/3gGFqGq Says:
    November 27th, 2022 at 20:44

    bit.ly/3gGFqGq

    bit.ly/3gGFqGq

  3. bit.ly/3ARFdXA Says:
    November 28th, 2022 at 05:23

    bit.ly/3ARFdXA

    bit.ly/3ARFdXA

  4. bit.ly/3ig2UT5 Says:
    November 28th, 2022 at 07:04

    bit.ly/3ig2UT5

    bit.ly/3ig2UT5

  5. bit.ly/3GQNK0J Says:
    November 28th, 2022 at 08:30

    bit.ly/3GQNK0J

    bit.ly/3GQNK0J

  6. bep5w0Df Says:
    November 30th, 2022 at 21:37

    bep5w0Df

    bep5w0Df

  7. www Says:
    December 2nd, 2022 at 19:12

    www

    www

  8. icf Says:
    December 4th, 2022 at 17:33

    icf

    icf

  9. 24hours-news Says:
    December 4th, 2022 at 23:02

    24hours-news

    24hours-news

  10. rusnewsweek Says:
    December 5th, 2022 at 00:02

    rusnewsweek

    rusnewsweek

  11. uluro-ado Says:
    December 5th, 2022 at 00:56

    uluro-ado

    uluro-ado

  12. madridbet Says:
    December 8th, 2022 at 09:04

    Solving

    https://schlosserei-herrsching.de/schluesseldienst/

  13. irannews.ru Says:
    December 9th, 2022 at 17:08

    irannews.ru

    irannews.ru

  14. klondayk2022 Says:
    December 9th, 2022 at 18:30

    klondayk2022

    klondayk2022

  15. tqmFEB3B Says:
    December 18th, 2022 at 06:29

    tqmFEB3B

    tqmFEB3B

  16. madridbet Says:
    December 22nd, 2022 at 12:12

    Solving

    https://cloudrovia.com/how-your-website-host-could-be-costing-your-small-business/

  17. meritking Says:
    December 24th, 2022 at 01:48

    Solving

    https://www.britishfalconersclub.co.uk/New_Site/2018/01/18/iaf-newsletter/

  18. fuvk google Says:
    December 27th, 2022 at 02:18

    Solving

    https://lawreview.nmims.edu/sanjana-khatri/

  19. madridbet Says:
    December 30th, 2022 at 04:58

    Solving

    http://mona-mal-weg.de/beispiel-seite/

  20. benelli firearms guns Says:
    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/ […]

  21. mangalib Says:
    January 4th, 2023 at 23:18

    mangalib

    mangalib

  22. x Says:
    January 19th, 2023 at 20:48

    x

    x

  23. 9xflix Says:
    January 20th, 2023 at 05:49

    9xflix

    9xflix

  24. xnxx Says:
    January 20th, 2023 at 09:49

    xnxx

    xnxx

  25. EOTECH OPTICS FOR SALE Says:
    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/ […]

  26. 123movies Says:
    January 20th, 2023 at 21:49

    123movies

    123movies

  27. IT정보 Says:
    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/ […]

  28. SBOBET Says:
    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/ […]

  29. check this out Says:
    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/ […]

  30. kinokrad Says:
    February 26th, 2023 at 13:24

    kinokrad

    kinokrad

  31. you could try this out Says:
    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/ […]

  32. batmanapollo Says:
    February 28th, 2023 at 04:44

    batmanapollo

    batmanapollo

  33. batmanapollo.ru - psychologist Says:
    March 1st, 2023 at 00:32

    batmanapollo.ru – psychologist

    batmanapollo.ru – psychologist

  34. download facebook private video Says:
    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/ […]

  35. batmanapollo psychologist Says:
    March 2nd, 2023 at 17:10

    batmanapollo psychologist

    batmanapollo psychologist

  36. madridbet Says:
    March 7th, 2023 at 05:32

    Solving

    https://ritlab.jp/bbs/wforum.cgi?no=7835

  37. elizavetaboyarskaya.ru Says:
    March 7th, 2023 at 13:03

    elizavetaboyarskaya.ru

    elizavetaboyarskaya.ru

  38. สล็อตเว็บตรง Says:
    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/ […]

  39. vsovezdeisrazu Says:
    March 14th, 2023 at 12:17

    vsovezdeisrazu

    vsovezdeisrazu

  40. 2023 Says:
    March 20th, 2023 at 10:53

    2023

    2023

  41. woodland hills personal injury attorney Says:
    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/ […]

  42. pg slot Says:
    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/ […]

  43. Äèçàéí ÷åëîâåêà Says:
    March 27th, 2023 at 16:17

    Äèçàéí ÷åëîâåêà

    Äèçàéí ÷åëîâåêà

  44. ipsychologos Says:
    March 28th, 2023 at 18:48

    ipsychologos

    ipsychologos

Comments