Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6908021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:30:29+00:00 2026-05-27T08:30:29+00:00

I am running a web server using VB.net and I have a bunch of

  • 0

I am running a web server using VB.net and I have a bunch of pages that need to utilize similar functionality, so I was thinking of creating a shared base class that incorporates all of this shared functionality. I created a file call it SharedBaseClass.vb, and I also have a class that should inherit from this class, SubClass.aspx.vb. The Top few lines of the the parent class look like this:

Partial Class SharedBaseClass
    Inherits System.Web.UI.Page

And of the child class that should inherit:

Partial Class SubClass
    Inherits SharedBaseClass

Then at the top of the SubClass.aspx file it looks like this:

<%@ Page Title="" Language="VB" MasterPageFile="~/Main_SA.master" AutoEventWireup="false" Src="SubClass.aspx.vb" Inherits="SubClass" %>

Assume that all of these files are located in the same directory.

But when I try to run this, I get an error:
Compiler Error Message: BC30002: Type ‘SharedBaseClass’ is not defined.
And then the highlighted error is on the line that reads: Inherits SharedBaseClass

I’ve also tried importing the file to no avail. What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:30:29+00:00Added an answer on May 27, 2026 at 8:30 am

    One other item to check, which isn’t as big an issue in VB.Net as it is in C# is to make sure that if you have a Namespace specified in SharedBaseClass, that the same Namespace is specified for the inherited classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET Web Application project that I am using to host a
I have ASP.NET MVC Beta on our web server running a few apps. My
We have a single ASP .NET application running on a single web server (no
I have a web site using .NET 4 and ASP.NET MVC3 running in IIS
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I'm running a web server using XAMPP. I have using a web form to
I have one ASP.NET web application running at the web server root which provides
We have an AS400 that we need to communicate with using our .NET applications.
i have webservice that is using .net 2.0 server 2003 32 bit when i
We have a couple of web servers using load balancer. Machines are running IIS6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.