Solved

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

Posted on 2011-03-21
3
209 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
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 …

929 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now