• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

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?
0
nicksbell
Asked:
nicksbell
  • 2
1 Solution
 
käµfm³d 👽Commented:
What is the access specifier set to? Public, private, friend, etc.?
0
 
nicksbellAuthor 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.
0
 
nicksbellAuthor Commented:
I found the answer myself but it may be useful to someone else so I have accepted the solution.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now