Declaration referenced in a method implementation can not be a final method.
I've been testing my business objects with a little driver program called
PSSDriver. It's a Windows Form project and I've been putting my code in the
The code is as follows:
Option Compare Text
Option Strict On
Imports PersonShowStationMaint ' The business objects DLL
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Const MarkConn As String = "Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=Mark;Data Source=RAINSLEY"
Dim Show As New Show(MarkConn)
The .GetById invocation works just fine and the Show object contains the
expected data. However, when I attempt to invoke the .GetShowPeople method, I
get the following error:
An unhandled exception of type 'System.TypeLoadException' occurred in
Additional information: Declaration referenced in a method implementation can
not be a final method. Type: PersonShowStationMaint.ShowPeople. Assembly:
The declaration of the .GetById method is:
Public Function GetById(ByVal Id As Int32) As Boolean
and the declaration of the .GetShowPeople method is:
Public Sub GetShowPeople()
What am I doing wrong?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL