Type 'Class' is not defined in Web App upgraded from VS2003 to 2010

Hi, I have a Visual Studio 2003 ASP.Net Web app that I have just upgraded to a Web Site in Visual Studio 2010.  In the project I have a vb class module which is inherited by various aspx pages (in the aspx.vb file).  Since upgrading the aspx.vb files can no longer see the class module.  

Has something changed in the way that inheritance is handled in 2010?
Who is Participating?
nicksbellConnect With a Mentor Author Commented:
I have discovered the problem.  It seems you now have to put Class modules in the App_Code folder otherwise they don't seem to be visible to the aspx.vb files.
käµfm³d 👽Commented:
What is the access specifier set to? Public, private, friend, etc.?
nicksbellAuthor Commented:
I found the answer myself but it may be useful to someone else so I have accepted the solution.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.