473,657 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Missing MemberException ' occurred in
microsoft.visua lbasic.dll

Additional information: Public member 'FindSearchValu eRecord' on type
'ProfileRecordP rocessing' not found.

This seems to suggest that the function "FindSearchValu eRecord" 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 FindSearchValue Record(ByVal searchString As String) As
SearchValueReco rd()
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(dvSearc hValues.Count - 1) As SearchValueReco rd
Dim indx As Integer = 0
For Each row In dvProfileFileTy pe
Dim value As String = row.Item("Value ")
Dim valueoperator As String = row.Item("Value Operator")
Dim startloctype As String = row.Item("Value StartLocType")
Dim position As Integer = row.Item("Value Position")
Dim delimiter As String = row.Item("Value Delimiter")
Dim size As Integer = row.Item("FileS ize")
Dim sizeoperator As String = row.Item("FileS izeOperator")
Dim createdate As Date = row.Item("FileC reateDate")
Dim dateoperator As String = row.Item("FileC reateDateOperat or")
records(indx) = New SearchValueReco rd(row.Item("Us erId"),
row.Item("Profi leNameID"), _
row.Item("Value ID"), row.Item("Value "), row.Item("Value Operator"),
row.Item("Value StartLocType"), _
row.Item("Value Position"), row.Item("Value Delimiter"), row.Item("FileS ize"), _
row.Item("FileS izeOperator"), row.Item("FileC reateDate"),
row.Item("FileC reateDateOperat or"))
Next
If holdCurFilter.L ength > 0 Then
dvSearchValues. RowFilter = holdCurFilter
End If
Catch e As Exception
dvSearchValues. RowFilter = holdCurFilter
Throw New DeleteRowExcept ion("Invalid Row Filter provided" & vbCrLf & _
"Procedure: ProfileRecordPr ocessing.FindSe archValueRecord " & 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 FindSearchValue Record(ByVal keys() As Object) As
SearchValueReco rd
Try
Dim item As Integer = dvSearchValues. Find(keys)
If Not IsNothing(item) And item <> -1 Then
Dim record As DataRowView = dvSearchValues( item)
Return New SearchValueReco rd(record.Item( "UserId"),
record.Item("Pr ofileNameID"), _
record.Item("Va lueID"), record.Item("Va lue"), record.Item("Va lueOperator"), _
record.Item("Va lueStartLocType "), record.Item("Va luePosition"), _
record.Item("Va lueDelimiter"), record.Item("Fi leSize"), _
record.Item("Fi leSizeOperator" ), record.Item("Fi leCreateDate"), _
record.Item("Fi leCreateDateOpe rator"))
End If
Catch e As Exception
Throw New DeleteRowExcept ion("Invalid Keys provided" & vbCrLf & _
"Procedure: ProfileRecordPr ocessing.FindSe archRecord" & 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 2828
Please repost to the framework.adone t

OHM
"Jim Heavey" <Ji*******@hotm ail.com> wrote in message
news:3f******** **@corp.newsgro ups.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.Missing MemberException ' occurred in
microsoft.visua lbasic.dll

Additional information: Public member 'FindSearchValu eRecord' on type
'ProfileRecordP rocessing' not found.

This seems to suggest that the function "FindSearchValu eRecord" 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 FindSearchValue Record(ByVal searchString As String) As
SearchValueReco rd()
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(dvSearc hValues.Count - 1) As SearchValueReco rd
Dim indx As Integer = 0
For Each row In dvProfileFileTy pe
Dim value As String = row.Item("Value ")
Dim valueoperator As String = row.Item("Value Operator")
Dim startloctype As String = row.Item("Value StartLocType")
Dim position As Integer = row.Item("Value Position")
Dim delimiter As String = row.Item("Value Delimiter")
Dim size As Integer = row.Item("FileS ize")
Dim sizeoperator As String = row.Item("FileS izeOperator")
Dim createdate As Date = row.Item("FileC reateDate")
Dim dateoperator As String = row.Item("FileC reateDateOperat or")
records(indx) = New SearchValueReco rd(row.Item("Us erId"),
row.Item("Profi leNameID"), _
row.Item("Value ID"), row.Item("Value "), row.Item("Value Operator"),
row.Item("Value StartLocType"), _
row.Item("Value Position"), row.Item("Value Delimiter"), row.Item("FileS ize"), _ row.Item("FileS izeOperator"), row.Item("FileC reateDate"),
row.Item("FileC reateDateOperat or"))
Next
If holdCurFilter.L ength > 0 Then
dvSearchValues. RowFilter = holdCurFilter
End If
Catch e As Exception
dvSearchValues. RowFilter = holdCurFilter
Throw New DeleteRowExcept ion("Invalid Row Filter provided" & vbCrLf & _
"Procedure: ProfileRecordPr ocessing.FindSe archValueRecord " & 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 FindSearchValue Record(ByVal keys() As Object) As
SearchValueReco rd
Try
Dim item As Integer = dvSearchValues. Find(keys)
If Not IsNothing(item) And item <> -1 Then
Dim record As DataRowView = dvSearchValues( item)
Return New SearchValueReco rd(record.Item( "UserId"),
record.Item("Pr ofileNameID"), _
record.Item("Va lueID"), record.Item("Va lue"), record.Item("Va lueOperator"), _ record.Item("Va lueStartLocType "), record.Item("Va luePosition"), _
record.Item("Va lueDelimiter"), record.Item("Fi leSize"), _
record.Item("Fi leSizeOperator" ), record.Item("Fi leCreateDate"), _
record.Item("Fi leCreateDateOpe rator"))
End If
Catch e As Exception
Throw New DeleteRowExcept ion("Invalid Keys provided" & vbCrLf & _
"Procedure: ProfileRecordPr ocessing.FindSe archRecord" & 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
2459
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 happens if one of those objects, when it is created, takes a reference to the object that contains it? Do bad things happen? class McShow {
2
11854
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 error message and stop the process every time someone loads the script after the table is created because that would mean the page could only ever run once which of course not the solution I was looking for. I simply want to know how I can check...
3
3704
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 DataView(dtsDataSet.Tables("Usuarios"), "", "UsuaNome", DataViewRowState.CurrentRows) The compiler say that the column "UsuaNome" cannot be find, but it exists in the database... Why it happens?????
6
21463
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 'column' in the ArrayList, the other is automatically sorted and so I can use IndexOf without fear. This is because I will be going through 20,000 some odd records and don't want to use a Lookup type of table/query; I figure an ArrayList.IndexOf method...
7
6740
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 AddPathAndCallCompactDB(string dbFolder, string systemDB, string UserID, string Pwd, string dbFileName) { FileInfo dbFileInfo = new FileInfo(dbFolder + dbFileName); this.lblDatabase.Text = dbFileInfo.Name; if (dbFileInfo.Exists)
1
2232
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 path as per the example. But we get this error "could not find a part of the path". we are prefixing the path with @ symbol and also tried with the escaping the "\\".
9
6816
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 something like if file.exists(filename) then convert(filename) else wait(100)
6
4866
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
5
5268
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 working. But before I get to the remove, I need to get my find method working. Basically, I am trying to get a "find" method working that will search for a giving int value, and return the node with that value. I have designed my current find with the...
4
1760
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
8394
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
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 we have to send another system

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.