VS2005 panel with bound controls - 11-02-2009 , 03:11 PM
I'm working on someone elses project and there is a form with a panel
control with bound controls bound to a binding source. I want to add
controls to this container and bind some of them to a binding source while
one of the controls will be unbound. Whenever I just add a label (ie modify
the panel via the designer) and run the project in debug mode I get an error
in the form's InitailizeComponent section.
The error says System.Exception:System.Reflection.TargetInvocatio nException:
Exception has been thrown by the target of an invocation. ---->
System.InvalidCastException: Unable to cast object of type
'MxSellItemMaint.dsSellItemMainTableAdapters.qFeIt emsTableAdapter' to
What could be causing this?
The project with the form is actually a DLL project that runs within another
app if that would cause any of this. As soon as I refetch the latest from
VSS (ie no change) it runs fine in debug mode.
|Thread Tools||Search this Thread|