473,473 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 975

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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.