Solved

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

Posted on 2011-03-21
3
212 Views
Last Modified: 2012-06-21
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
Comment
Question by:nicksbell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35183820
What is the access specifier set to? Public, private, friend, etc.?
0
 
LVL 2

Accepted Solution

by:
nicksbell earned 0 total points
ID: 35183975
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
 
LVL 2

Author Closing Comment

by:nicksbell
ID: 35225134
I found the answer myself but it may be useful to someone else so I have accepted the solution.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question