Solved

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

791 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