473,385 Members | 1,727 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,385 software developers and data experts.

Can't Find The Method Which Exists

Hello, I am running into something strange. I am getting the following error
when the program attempts to execute a particular procedure:

An unhandled exception of type 'System.MissingMemberException' occurred in
microsoft.visualbasic.dll

Additional information: Public member 'FindSearchValueRecord' on type
'ProfileRecordProcessing' not found.

This seems to suggest that the function "FindSearchValueRecord" does not
exist, but it does exist. The procedure at then end of this message. I have
another procedure with the same name which has a different signature. I found
that if I go into the program and change one of the procedure names, then
everything works just fine. I am allowed to have methods with the same name
but different signatures, I have a number of those throughout my program, so
why is it picking on this procedure.

Any Ideas? Is this a compiler problem? I have attached the second procedure
with the same name...
Public Function FindSearchValueRecord(ByVal searchString As String) As
SearchValueRecord()
Dim holdCurFilter As String = dvSearchValues.RowFilter
Try
dvSearchValues.RowFilter = searchString
Dim row As DataRowView
If dvSearchValues.Count = 0 Then
Return Nothing
End If
Dim records(dvSearchValues.Count - 1) As SearchValueRecord
Dim indx As Integer = 0
For Each row In dvProfileFileType
Dim value As String = row.Item("Value")
Dim valueoperator As String = row.Item("ValueOperator")
Dim startloctype As String = row.Item("ValueStartLocType")
Dim position As Integer = row.Item("ValuePosition")
Dim delimiter As String = row.Item("ValueDelimiter")
Dim size As Integer = row.Item("FileSize")
Dim sizeoperator As String = row.Item("FileSizeOperator")
Dim createdate As Date = row.Item("FileCreateDate")
Dim dateoperator As String = row.Item("FileCreateDateOperator")
records(indx) = New SearchValueRecord(row.Item("UserId"),
row.Item("ProfileNameID"), _
row.Item("ValueID"), row.Item("Value"), row.Item("ValueOperator"),
row.Item("ValueStartLocType"), _
row.Item("ValuePosition"), row.Item("ValueDelimiter"), row.Item("FileSize"), _
row.Item("FileSizeOperator"), row.Item("FileCreateDate"),
row.Item("FileCreateDateOperator"))
Next
If holdCurFilter.Length > 0 Then
dvSearchValues.RowFilter = holdCurFilter
End If
Catch e As Exception
dvSearchValues.RowFilter = holdCurFilter
Throw New DeleteRowException("Invalid Row Filter provided" & vbCrLf & _
"Procedure: ProfileRecordProcessing.FindSearchValueRecord" & vbCrLf & _
"Filter provided = " & searchString & vbCrLf & _
"Detailed message: " & e.Message & vbCrLf & "Stack trace: " & e.StackTrace)
End Try

Here is the second procedure with the same name...

Public Function FindSearchValueRecord(ByVal keys() As Object) As
SearchValueRecord
Try
Dim item As Integer = dvSearchValues.Find(keys)
If Not IsNothing(item) And item <> -1 Then
Dim record As DataRowView = dvSearchValues(item)
Return New SearchValueRecord(record.Item("UserId"),
record.Item("ProfileNameID"), _
record.Item("ValueID"), record.Item("Value"), record.Item("ValueOperator"), _
record.Item("ValueStartLocType"), record.Item("ValuePosition"), _
record.Item("ValueDelimiter"), record.Item("FileSize"), _
record.Item("FileSizeOperator"), record.Item("FileCreateDate"), _
record.Item("FileCreateDateOperator"))
End If
Catch e As Exception
Throw New DeleteRowException("Invalid Keys provided" & vbCrLf & _
"Procedure: ProfileRecordProcessing.FindSearchRecord" & vbCrLf & _
"Keys provided = " & keys(0) & " and " & keys(1) & vbCrLf & _
"Detailed message: " & e.Message & vbCrLf & "Stack trace: " & e.StackTrace)
End Try

End Function


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 20 '05 #1
1 2821
Please repost to the framework.adonet

OHM
"Jim Heavey" <Ji*******@hotmail.com> wrote in message
news:3f**********@corp.newsgroups.com...
Hello, I am running into something strange. I am getting the following error when the program attempts to execute a particular procedure:

An unhandled exception of type 'System.MissingMemberException' occurred in
microsoft.visualbasic.dll

Additional information: Public member 'FindSearchValueRecord' on type
'ProfileRecordProcessing' not found.

This seems to suggest that the function "FindSearchValueRecord" does not
exist, but it does exist. The procedure at then end of this message. I have another procedure with the same name which has a different signature. I found that if I go into the program and change one of the procedure names, then
everything works just fine. I am allowed to have methods with the same name but different signatures, I have a number of those throughout my program, so why is it picking on this procedure.

Any Ideas? Is this a compiler problem? I have attached the second procedure with the same name...
Public Function FindSearchValueRecord(ByVal searchString As String) As
SearchValueRecord()
Dim holdCurFilter As String = dvSearchValues.RowFilter
Try
dvSearchValues.RowFilter = searchString
Dim row As DataRowView
If dvSearchValues.Count = 0 Then
Return Nothing
End If
Dim records(dvSearchValues.Count - 1) As SearchValueRecord
Dim indx As Integer = 0
For Each row In dvProfileFileType
Dim value As String = row.Item("Value")
Dim valueoperator As String = row.Item("ValueOperator")
Dim startloctype As String = row.Item("ValueStartLocType")
Dim position As Integer = row.Item("ValuePosition")
Dim delimiter As String = row.Item("ValueDelimiter")
Dim size As Integer = row.Item("FileSize")
Dim sizeoperator As String = row.Item("FileSizeOperator")
Dim createdate As Date = row.Item("FileCreateDate")
Dim dateoperator As String = row.Item("FileCreateDateOperator")
records(indx) = New SearchValueRecord(row.Item("UserId"),
row.Item("ProfileNameID"), _
row.Item("ValueID"), row.Item("Value"), row.Item("ValueOperator"),
row.Item("ValueStartLocType"), _
row.Item("ValuePosition"), row.Item("ValueDelimiter"), row.Item("FileSize"), _ row.Item("FileSizeOperator"), row.Item("FileCreateDate"),
row.Item("FileCreateDateOperator"))
Next
If holdCurFilter.Length > 0 Then
dvSearchValues.RowFilter = holdCurFilter
End If
Catch e As Exception
dvSearchValues.RowFilter = holdCurFilter
Throw New DeleteRowException("Invalid Row Filter provided" & vbCrLf & _
"Procedure: ProfileRecordProcessing.FindSearchValueRecord" & vbCrLf & _
"Filter provided = " & searchString & vbCrLf & _
"Detailed message: " & e.Message & vbCrLf & "Stack trace: " & e.StackTrace) End Try

Here is the second procedure with the same name...

Public Function FindSearchValueRecord(ByVal keys() As Object) As
SearchValueRecord
Try
Dim item As Integer = dvSearchValues.Find(keys)
If Not IsNothing(item) And item <> -1 Then
Dim record As DataRowView = dvSearchValues(item)
Return New SearchValueRecord(record.Item("UserId"),
record.Item("ProfileNameID"), _
record.Item("ValueID"), record.Item("Value"), record.Item("ValueOperator"), _ record.Item("ValueStartLocType"), record.Item("ValuePosition"), _
record.Item("ValueDelimiter"), record.Item("FileSize"), _
record.Item("FileSizeOperator"), record.Item("FileCreateDate"), _
record.Item("FileCreateDateOperator"))
End If
Catch e As Exception
Throw New DeleteRowException("Invalid Keys provided" & vbCrLf & _
"Procedure: ProfileRecordProcessing.FindSearchRecord" & vbCrLf & _
"Keys provided = " & keys(0) & " and " & keys(1) & vbCrLf & _
"Detailed message: " & e.Message & vbCrLf & "Stack trace: " & e.StackTrace) End Try

End Function


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

Nov 20 '05 #2

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

Similar topics

6
by: lawrence | last post by:
How dangerous or stupid is it for an object to have a reference to the object which contains it? If I have a class called $controllerForAll which has an arrray of all the objects that exist, what...
2
by: Jonathan | last post by:
I am looking for a simple way to check if a database table exists. I keep getting advice to use "Try.. Catch" and other error handling methods, but I obviously don't want to have to display an...
3
by: André Almeida Maldonado | last post by:
When I use this code: Dim dtsDataSet As DataSet = New DataSet("Dados") Dim dttUsuarios As DataTable = dtsDataSet.Tables.Add("Usuarios") Dim dtvUsuarios As DataView = New...
6
by: Dan V. | last post by:
I would like to create a 2D string list (2D ArrayList ???). I would like to pass in a table or query as a parameter and have both columns transform into a 2D ArrayList. When I sort the one...
7
by: jez123456 | last post by:
Hi, I have the following method where I need to display which database is being processed, however, the label lblDatabase dosn't seem to work until the end. private void...
1
by: Steve | last post by:
Hi all, I am referring to this article in MSDN : http://msdn.microsoft.com/library/en-us/secauthn/security/logonuser.asp While creating folder on the remote machine, we are specifying the UNC...
9
by: Philip Wagenaar | last post by:
I have a function that converts a file to another formait. But sometimes it might take up to 50-100 milliseconds before the file exists on the location the folder is looking for. I want...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
5
gekko3558
by: gekko3558 | last post by:
I am writing a simple binary search tree (nodes are int nodes) with a BSTNode class and a BST class. I have followed the instructions from my C++ book, and now I am trying to get a remove method...
4
by: stiki | last post by:
How and what does this mean in php: ($this->varname) I can't seem to find this by searching Google, because the "->" are removed from my search query. Cheers, Igor Terzic www.stikimedia.com
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.