473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Inheritance not working... can't recognize functions

I have a simple setup using class objects that is not working. I have an
ASP.NET app that calls 'class A' which calls the 'DBAccess' class. The idea
is that the DBAccess class will be the DB Layer class and only contain code
to access the database. This works great... as long as there is only one
function contained in the DBAccess class. It seems that when I try to add
another function the browser returns a "system.MissingMethodException" error
for the new function because it can't 'find' the method. The other function
continues to work properly. When I am developing, the autofill feature
finds the parameters of the new method just fine so I know that in
design-time VS sees the method, but when I run it does not. This is driving
me crazy and I have at least 6 hours in on this issue over the past 3 days!
My writing to this forum is my last hope before I just create new DBAccess
DLLS for every function to get this project out of here.

Here is the critical code in case it helps in knowing what I might be doing
wrong:

'CLASS A'
Imports DBConnection.SQLConnect
Public Class Class1
Inherits DBConnection.SQLConnect

Public Function GetAuth(byVal Login As String, ByVal Password As String)
As Boolean

blnAnswer = RunStored Proc("Anything")
Return blnAnswer
End Function
End Class

FORM.ASPX.VB
Imports ClassA.Class
Public Class Form1
Inherits System.Web.UI.Page
Public oPeople As New ClassA.Class

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack() Then
If oPeople.GetAuth("name", "password") Then
tb2.Text = "True"
Else
tb2.Text = "False"
End If
End If
End Sub
End Class
Jul 21 '05 #1
0 973

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: km | last post by:
Hi all, In the following code why am i not able to access class A's object attribute - 'a' ? I wishto extent class D with all the attributes of its base classes. how do i do that ? thanks in...
14
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
0
by: Torp | last post by:
I have a simple setup using class objects that is not working. I have an ASP.NET app that calls 'class A' which calls the 'DBAccess' class. The idea is that the DBAccess class will be the DB...
47
by: Mark | last post by:
why doesn't .NET support multiple inheritance? I think it's so silly! Cheers, Mark
3
by: kikazaru | last post by:
Is it possible to return covariant types for virtual methods inherited from a base class using virtual inheritance? I've constructed an example below, which has the following structure: Shape...
18
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. So I'm sorry if this has been answered before....
3
by: Kenneth McDonald | last post by:
Over the last couple of years, I've built a module called rex that lays on top of (and from the user's point of view, hides) the re module. rex offers the following advantages over re. *...
5
Ganon11
by: Ganon11 | last post by:
Hey guys, I'm learning C++ for the first time and have found it quite similar to Java in many ways. However, Inheritance differed a little bit, and I seem to have trouble with it, especially when...
2
by: Wilson | last post by:
Hi, a very simple question. I am trying to understand inheritance using c++ and dont cee how i could use three classes to create an accounting program using inheritance. e.g one class containing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.