views:

126

answers:

3

Hi,

I'm using visual studio 2008 SP1, I'm working with a web project in VB.NET. the problem when I add new class file (of-course in App_Code) it doesn't recognize it. all the old class files are working fine, but the new ones aren't. I restarted my computer and still the same problem.

Any Ideas

A: 

Make sure it is in the same namespace as the thing you are trying to call it from, or fully declare using the namespace when creating one. Perhaps also give us an example of one that works and one that doesn't.

Also, don't forget to use the proper access modifier. Start with Public to see if that fixes your problem. If that does then your classes are almost certainly in different namespaces.

Russell Steen
The whole class doesn't work, even intellisense doesn't work inside the class itself, and I'm 100% sure about the namespace. yesterday when I add a class works fine, today just stopped working
Kronass
+1  A: 

compare properties of working class with un recognised class. Specifically, "Build Action". It should resolve the problem.

if not let me know. :)

Saar
A: 

maybe you are trying to use internal classes from another assembly or there may be problems with the access modifiers of the class.

Kubi