?
Solved

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

Posted on 2011-03-21
3
Medium Priority
?
214 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

800 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