Dotnet website - class in one file can't access class in a different file

Posted by bmutch on Stack Overflow See other posts from Stack Overflow or by bmutch
Published on 2010-06-09T13:39:35Z Indexed on 2010/06/09 13:42 UTC
Read the original article Hit count: 347

I've inherited a web site I'm editing in dotnet and it won't compile because the class in one file (say class1.vb) refers to a class in another file (say class2) (like Dim m_c As class2) , but the compiler says "Type Class2 is not defined".

when I look in the object browswer the classes are listed separately (i.e. not all grouped under the same namespace) and appear as:

Public Class Class1 Inherits System.Object Member of C:...\mywebsite\

Help!, thanks.

© Stack Overflow or respective owner

Related posts about web-development

Related posts about web-applications