473,654 Members | 3,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

binding error

GS
I am perplexed . I thought it is easy to fix the binding error on
cvtDtFrom. I only used the cvtDtFrom a couple of places but I found out
the error occurred before form loading.
I tried searching in the solution for cvtDtFrom but failed to find the
culprit.
tried using clue from stack trace, searching for DataGridview and
variations of view.datacon... no luck, Even tried searching all files for
the sub main, I failed to find it.

I ended up spending a few hours searching , stepping thru code by arbitrayly
comment out the debug step thru directives.

I must be away from .net too long.

System.Argument Exception was unhandled
Message="Cannot bind to the property or column CvtDtFrom on the
DataSource.\r\n Parameter name: dataMember"
Source="System. Windows.Forms"
ParamName="data Member"
StackTrace:
at System.Windows. Forms.BindToObj ect.CheckBindin g()
at
System.Windows. Forms.BindToObj ect.SetBindingM anagerBase(Bind ingManagerBase
lManager)
at System.Windows. Forms.Binding.S etListManager(B indingManagerBa se
bindingManagerB ase)
at System.Windows. Forms.ListManag erBindingsColle ction.AddCore(B inding
dataBinding)
at System.Windows. Forms.BindingsC ollection.Add(B inding binding)
at System.Windows. Forms.BindingCo ntext.UpdateBin ding(BindingCon text
newBindingConte xt, Binding binding)
at System.Windows. Forms.Control.U pdateBindings()
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs e)
at
System.Windows. Forms.Control.s et_BindingConte xtInternal(Bind ingContext
value)
at
System.Windows. Forms.Container Control.set_Bin dingContext(Bin dingContext
value)
at System.Windows. Forms.Container Control.get_Bin dingContext()
at System.Windows. Forms.Control.g et_BindingConte xtInternal()
at System.Windows. Forms.Control.g et_BindingConte xt()
at System.Windows. Forms.Control.g et_BindingConte xtInternal()
at System.Windows. Forms.Control.g et_BindingConte xt()
at System.Windows. Forms.Control.g et_BindingConte xtInternal()
at System.Windows. Forms.Control.g et_BindingConte xt()
at
System.Windows. Forms.DataGridV iew.DataGridVie wDataConnection .SetDataConnect i
on(Object dataSource, String dataMember)
at
System.Windows. Forms.DataGridV iew.OnBindingCo ntextChanged(Ev entArgs e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs e)
at System.Windows. Forms.Control.C reateControl()
at System.Windows. Forms.Control.S etVisibleCore(B oolean value)
at System.Windows. Forms.TabPage.s et_Visible(Bool ean value)
at System.Windows. Forms.TabContro l.UpdateTabSele ction(Boolean
updateFocus)
at System.Windows. Forms.TabContro l.OnHandleCreat ed(EventArgs e)
at System.Windows. Forms.Control.W mCreate(Message & m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.TabContro l.WndProc(Messa ge& m)
at
System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage&
m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.UnsafeNat iveMethods.IntC reateWindowEx(I nt32
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32
x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef
hMenu, HandleRef hInst, Object pvParam)
at System.Windows. Forms.UnsafeNat iveMethods.Crea teWindowEx(Int3 2
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32
x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef
hMenu, HandleRef hInst, Object pvParam)
at System.Windows. Forms.NativeWin dow.CreateHandl e(CreateParams cp)
at System.Windows. Forms.Control.C reateHandle()
at System.Windows. Forms.TabContro l.CreateHandle( )
at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
at System.Windows. Forms.Control.C reateControl()
at System.Windows. Forms.Control.W mShowWindow(Mes sage& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WmSh owWindow(Messag e& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at
System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage&
m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.SafeNativ eMethods.ShowWi ndow(HandleRef hWnd,
Int32 nCmdShow)
at System.Windows. Forms.Control.S etVisibleCore(B oolean value)
at System.Windows. Forms.Form.SetV isibleCore(Bool ean value)
at System.Windows. Forms.Control.s et_Visible(Bool ean value)
at
System.Windows. Forms.Applicati on.ThreadContex t.RunMessageLoo pInner(Int32
reason, ApplicationCont ext context)
at
System.Windows. Forms.Applicati on.ThreadContex t.RunMessageLoo p(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Applicat ionContext context)
at
Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.OnRun (
)
at
Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.DoApp l
icationModel()
at
Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.Run(S t
ring[] commandLine)
at RegexTest.My.My Application.Mai n(String[] Args) in
17d14f5c-a337-4978-8281-53493378c1071.v b:line 81
at System.AppDomai n._nExecuteAsse mbly(Assembly assembly, String[]
args)
at System.AppDomai n.ExecuteAssemb ly(String assemblyFile, Evidence
assemblySecurit y, String[] args)
at Microsoft.Visua lStudio.Hosting Process.HostPro c.RunUsersAssem bly()
at System.Threadin g.ThreadHelper. ThreadStart_Con text(Object state)
at System.Threadin g.ExecutionCont ext.Run(Executi onContext
executionContex t, ContextCallback callback, Object state)
at System.Threadin g.ThreadHelper. ThreadStart()
InnerException:

Please tell me what the proper way to find the bug on this application.
your time is much appreciated. thank you.

Aug 15 '08 #1
1 2100
GS
sorry forgot to say this is an vb 2008 project using sql express 2005 and
..net 3.5

the dataset I used is populated with only 5 tables and views from an
attached mdf file. went thru preview them all without problem.
there are only tow items related to cvtDtFrom. one is the regex table hidden
textbox for cvtDtFrom as one of the regex table column, one is a combobox
box display a list from the foreign key view viewCvtDtFrom. the combobox is
display to allow user to select the proper cvtDtFrom for the regex

"GS" <gs************ **********@msne ws.Nomail.comwr ote in message
news:uH******** ********@TK2MSF TNGP02.phx.gbl. ..
I am perplexed . I thought it is easy to fix the binding error on
cvtDtFrom. I only used the cvtDtFrom a couple of places but I found
out
the error occurred before form loading.
I tried searching in the solution for cvtDtFrom but failed to find the
culprit.
tried using clue from stack trace, searching for DataGridview and
variations of view.datacon... no luck, Even tried searching all files for
the sub main, I failed to find it.

I ended up spending a few hours searching , stepping thru code by
arbitrayly
comment out the debug step thru directives.

I must be away from .net too long.

System.Argument Exception was unhandled
Message="Cannot bind to the property or column CvtDtFrom on the
DataSource.\r\n Parameter name: dataMember"
Source="System. Windows.Forms"
ParamName="data Member"
StackTrace:
at System.Windows. Forms.BindToObj ect.CheckBindin g()
at
System.Windows. Forms.BindToObj ect.SetBindingM anagerBase(Bind ingManagerBase
lManager)
at System.Windows. Forms.Binding.S etListManager(B indingManagerBa se
bindingManagerB ase)
at
System.Windows. Forms.ListManag erBindingsColle ction.AddCore(B inding
dataBinding)
at System.Windows. Forms.BindingsC ollection.Add(B inding binding)
at System.Windows. Forms.BindingCo ntext.UpdateBin ding(BindingCon text
newBindingConte xt, Binding binding)
at System.Windows. Forms.Control.U pdateBindings()
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs
e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs
e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs
e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs
e)
at
System.Windows. Forms.Control.s et_BindingConte xtInternal(Bind ingContext
value)
at
System.Windows. Forms.Container Control.set_Bin dingContext(Bin dingContext
value)
at System.Windows. Forms.Container Control.get_Bin dingContext()
at System.Windows. Forms.Control.g et_BindingConte xtInternal()
at System.Windows. Forms.Control.g et_BindingConte xt()
at System.Windows. Forms.Control.g et_BindingConte xtInternal()
at System.Windows. Forms.Control.g et_BindingConte xt()
at System.Windows. Forms.Control.g et_BindingConte xtInternal()
at System.Windows. Forms.Control.g et_BindingConte xt()
at
System.Windows. Forms.DataGridV iew.DataGridVie wDataConnection .SetDataConnect i
on(Object dataSource, String dataMember)
at
System.Windows. Forms.DataGridV iew.OnBindingCo ntextChanged(Ev entArgs e)
at
System.Windows. Forms.Control.O nParentBindingC ontextChanged(E ventArgs e)
at System.Windows. Forms.Control.O nBindingContext Changed(EventAr gs
e)
at System.Windows. Forms.Control.C reateControl()
at System.Windows. Forms.Control.S etVisibleCore(B oolean value)
at System.Windows. Forms.TabPage.s et_Visible(Bool ean value)
at System.Windows. Forms.TabContro l.UpdateTabSele ction(Boolean
updateFocus)
at System.Windows. Forms.TabContro l.OnHandleCreat ed(EventArgs e)
at System.Windows. Forms.Control.W mCreate(Message & m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.TabContro l.WndProc(Messa ge& m)
at
System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at
System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage&
m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr
hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.UnsafeNat iveMethods.IntC reateWindowEx(I nt32
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32
x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef
hMenu, HandleRef hInst, Object pvParam)
at System.Windows. Forms.UnsafeNat iveMethods.Crea teWindowEx(Int3 2
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32
x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef
hMenu, HandleRef hInst, Object pvParam)
at System.Windows. Forms.NativeWin dow.CreateHandl e(CreateParams cp)
at System.Windows. Forms.Control.C reateHandle()
at System.Windows. Forms.TabContro l.CreateHandle( )
at System.Windows. Forms.Control.C reateControl(Bo olean
fIgnoreVisible)
at System.Windows. Forms.Control.C reateControl(Bo olean
fIgnoreVisible)
at System.Windows. Forms.Control.C reateControl()
at System.Windows. Forms.Control.W mShowWindow(Mes sage& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WmSh owWindow(Messag e& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at
System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at
System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage&
m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr
hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.SafeNativ eMethods.ShowWi ndow(HandleRef
hWnd,
Int32 nCmdShow)
at System.Windows. Forms.Control.S etVisibleCore(B oolean value)
at System.Windows. Forms.Form.SetV isibleCore(Bool ean value)
at System.Windows. Forms.Control.s et_Visible(Bool ean value)
at
System.Windows. Forms.Applicati on.ThreadContex t.RunMessageLoo pInner(Int32
reason, ApplicationCont ext context)
at
System.Windows. Forms.Applicati on.ThreadContex t.RunMessageLoo p(Int32
reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Applicat ionContext context)
at
Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.OnRun (
)
at
Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.DoApp l
icationModel()
at
Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.Run(S t
ring[] commandLine)
at RegexTest.My.My Application.Mai n(String[] Args) in
17d14f5c-a337-4978-8281-53493378c1071.v b:line 81
at System.AppDomai n._nExecuteAsse mbly(Assembly assembly, String[]
args)
at System.AppDomai n.ExecuteAssemb ly(String assemblyFile, Evidence
assemblySecurit y, String[] args)
at
Microsoft.Visua lStudio.Hosting Process.HostPro c.RunUsersAssem bly()
at System.Threadin g.ThreadHelper. ThreadStart_Con text(Object state)
at System.Threadin g.ExecutionCont ext.Run(Executi onContext
executionContex t, ContextCallback callback, Object state)
at System.Threadin g.ThreadHelper. ThreadStart()
InnerException:

Please tell me what the proper way to find the bug on this application.
your time is much appreciated. thank you.

Aug 15 '08 #2

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

Similar topics

1
2067
by: vMike | last post by:
If I try to get the tooltip and name of the image object that triggers the image button onclick event I get a late binding error. I can turn off option strict but is there any other way to get this information. I am using sender.tooltip and sender.name methods. I don't really understand the late binding thing, but what other way can I get the tooltip of the sender. I use image name and the information in the tool tip to process the image...
2
1663
by: VB Programmer | last post by:
I have an arraylist which holds a custom structure I made. (The structure contains FirstName, LastName, Address and EmpId.) I am trying to loop through the arraylist to write out each item. Here's the code: Dim i As Integer For i = 0 To alRecentActivity.Count - 1 Debug.Write(alRecentActivity.Item(i).FirstName) Next
0
1343
by: alan | last post by:
Dear all, I'm trying to do a data binding for a ListView and I rewrite the code from some example but there is a error while I execute. Can anybody tell me what's wrong with it?? Thank you!! Alan Error message is
3
1023
by: Muhiadin | last post by:
i'm using vs.net 2002, the proplem is " i have textbox1 binding in column of dataTable when textbox1 is not visible, it is not possible to read the value of texbox1" in dotnet when visual object is not visible that means it is not esiste", my problem i result using textbox1.size.width = 0.
1
263
by: Dean Slindee | last post by:
Can someone explain how to remedy the two late binding errors below when Option Strict On: Public Function ControlDataRowArrayListPaint(ByRef frm As Form, _ ByRef ctl As Control, _ ByRef dr As DataRow, _
2
1468
by: Dean Slindee | last post by:
Can someone explain how to remedy the two late binding errors below when Option Strict On: Public Function ControlDataRowArrayListPaint(ByRef frm As Form, _ ByRef ctl As Control, _ ByRef dr As DataRow, _ ByRef arrControl As
2
1026
by: Dean Slindee | last post by:
Notice the one 'LATE BINDING ERROR line at the bottom, the rest of the code is just the context. How can this one line be coded to comply with Option Strict ON? '== Calling form ============================= Public arrStatus(3) As String 'housekeeping
0
2069
by: Siv | last post by:
Hi, I have a class that I want to use generically to add items to a combobox so that I have a display item and an ID item that isn't displayed but that I can use to display the relevant database record for when the user selects an entry in the combo. This is my generic class: public class ComboItems {
0
1555
by: Charlie | last post by:
Hi: I get a TreeNode binding error when using Data property of XmlDataSource control. When I switch to TextFile property and point to xml file on hard drive, problem goes anyway. I'm initializing Data property with xml string that matches file exactly. Seems to be problem with binding because if I remove bindings, tree works both ways. I'm binding on server like so... TreeNodeBinding bind = new TreeNodeBinding(); bind.DataMember =...
0
8294
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
8816
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...
0
8709
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8494
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
8596
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
7309
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...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1924
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1597
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.