0

Hi all, need some help.

I've just built a (REALLY) simple hit counter to add to my website, and was forced to use ASP.NET. (but im not using visual studio at the moment).

I created a class file (counter.cs), and placed it in the App_Code folder. It was my assumption that by doing this, I would be able to instantiate an object of type Counter, giving me access to its methods and variables.

Problem is that as soon as I try to instantiate an object of this type, i get the error: "The type or namespace name 'Counter' could not be found".

Am I missing something here? Maybe I'm barking up the wrong tree?

Thanks!

1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by AnzJ
0

Wow. All I have to say is wow.
6 hours, and a butt-load of client $$ later, I've found my error.

Its important to remember that C# is Case-sensitive. My class was defined as counter, and i was trying to instantiate an object of type "Counter". Stupid capital C.

Brock U should revoke my degree.
Thanks All.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.