ASP.NET error CS0103: The name [name] does not exist in the current context

disaia

New member
Joined
Oct 12, 2022
Messages
2
Programming Experience
10+
Every professional programmer "steals" code they got from somewhere on the internet. It's not a big deal. It's like "stealing" a math formula.

I've been a programmer for about 40 years, and I am getting this error message too. Somehow, the link between a control on my aspx page got disconnected from the code behind and it cannot recognize my control. It has nothing to do with being inexperienced. It might have something to do with it being a bug in Visual Studio.
 
I solved the problem. The program could not find an assembly listed in web.config. You can comment out those assembly lines in web.config to temporarily fix the problem, but you need to find those assemblies (with the correct version) and add them into your project or into the GAC.
 
Every professional programmer "steals" code they got from somewhere on the internet. It's not a big deal. It's like "stealing" a math formula.
It can be a big deal if the code is copyrighted.
 
Back
Top Bottom