Does anyone uses the winforms DataRepeater????

L

Lloyd Sheen

If so what has been your experience. Every so often it just goes off the
chart. Runtime errors with no apparent reason. Messages that mean
something to someone in MS who coded it but like most MS code there has been
little of no attempt to aid the developer by generating good messages.

The error I get is and if anyone outside MS can get a handle on this I would
really appreciate it.

I can see that it is attempting to read data but what data, what is the
problem, what is....

So many questions. So few answers.


HELP!!!

System.ArgumentException was unhandled
Message="Parameter is not valid."
Source="System"
StackTrace:
at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.PushDataIntoControl(Control
ctl, String propertyName, Object data)
at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.ReadValue()
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.PushDataIntoRepeaterItem(DataRepeaterItem
repeaterItem)
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateItem(DataRepeaterItem
item, Int32 index)
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.GetFromTempItems(Int32 index)
at Microsoft.VisualBasic.PowerPacks.DataRepeater.MakeupDisplayItems()
at Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateView(Boolean
moveToCurrent, Boolean updateExistingItemAppearance)
at Microsoft.VisualBasic.PowerPacks.DataRepeater.SetDataConnection()
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.set_DataSource(Object value)
at New_Music_Console.FolderListUC.SortByReleaseYear() in C:\Visual
Studio Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 274
at New_Music_Console.FolderListUC.SetItems() in C:\Visual Studio
Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 151
at New_Music_Console.FolderListUC.priorButton_Click(Object sender,
EventArgs e) in C:\Visual Studio Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 178
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine)
at New_Music_Console.My.MyApplication.Main(String[] Args) in
17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
 
R

rowe_newsgroups

If so what has been your experience.  Every so often it just goes off the
chart.  Runtime errors with no apparent reason.  Messages that mean
something to someone in MS who coded it but like most MS code there has been
little of no attempt to aid the developer by generating good messages.

The error I get is and if anyone outside MS can get a handle on this I would
really appreciate it.

I can see that it is attempting to read data but what data, what is the
problem, what is....

So many questions.  So few answers.

HELP!!!

System.ArgumentException was unhandled
  Message="Parameter is not valid."
  Source="System"
  StackTrace:
       at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
       at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.PushDataIntoContro l(Control
ctl, String propertyName, Object data)
       at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.ReadValue()
       at
Microsoft.VisualBasic.PowerPacks.DataRepeater.PushDataIntoRepeaterItem(Data RepeaterItem
repeaterItem)
       at
Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateItem(DataRepeaterItem
item, Int32 index)
       at
Microsoft.VisualBasic.PowerPacks.DataRepeater.GetFromTempItems(Int32 index)
       at Microsoft.VisualBasic.PowerPacks.DataRepeater.MakeupDisplayItems()
       at Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateView(Boolean
moveToCurrent, Boolean updateExistingItemAppearance)
       at Microsoft.VisualBasic.PowerPacks.DataRepeater.SetDataConnection()
       at
Microsoft.VisualBasic.PowerPacks.DataRepeater.set_DataSource(Object value)
       at New_Music_Console.FolderListUC.SortByReleaseYear() in C:\Visual
Studio Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 274
       at New_Music_Console.FolderListUC.SetItems() in C:\Visual Studio
Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 151
       at New_Music_Console.FolderListUC.priorButton_Click(Objectsender,
EventArgs e) in C:\Visual Studio Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 178
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
       at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Unsa feNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
       at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
       at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
       at System.Windows.Forms.Application.Run(ApplicationContextcontext)
       at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun ()
       at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApp licationModel()
       at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(S tring[]
commandLine)
       at New_Music_Console.My.MyApplication.Main(String[] Args) in
17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

Not sure what to tell you, especially since this is an issue with a
PowerPack, and not a "true" member of the .NET framework.

As far as I can tell you have about 3 options:

1) Report this to http://connect.microsoft.com/ (which is actually
monitored by Microsoft). Odds are it'll be marked as not being able to
be reproduced (unless you can provide a sample)

2) Sign up for help from Microsoft, such as an MSDN subscription. This
costs money and doesn't guarantee a fix.

3) Hope the PowerPacks are shared source and can be debugged into and
find the problem yourself. Not sure if they are, but here's
instructions for debugging into the "standard" framework code:
http://weblogs.asp.net/scottgu/arch...mework-library-source-code-now-available.aspx

Besides that all I can do is wish you good luck!

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
L

Lloyd Sheen

If so what has been your experience. Every so often it just goes off the
chart. Runtime errors with no apparent reason. Messages that mean
something to someone in MS who coded it but like most MS code there has
been
little of no attempt to aid the developer by generating good messages.

The error I get is and if anyone outside MS can get a handle on this I
would
really appreciate it.

I can see that it is attempting to read data but what data, what is the
problem, what is....

So many questions. So few answers.

HELP!!!

System.ArgumentException was unhandled
Message="Parameter is not valid."
Source="System"
StackTrace:
at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.PushDataIntoContro
l(Control
ctl, String propertyName, Object data)
at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.ReadValue()
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.PushDataIntoRepeaterItem(Data
RepeaterItem
repeaterItem)
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateItem(DataRepeaterItem
item, Int32 index)
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.GetFromTempItems(Int32
index)
at Microsoft.VisualBasic.PowerPacks.DataRepeater.MakeupDisplayItems()
at Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateView(Boolean
moveToCurrent, Boolean updateExistingItemAppearance)
at Microsoft.VisualBasic.PowerPacks.DataRepeater.SetDataConnection()
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.set_DataSource(Object value)
at New_Music_Console.FolderListUC.SortByReleaseYear() in C:\Visual
Studio Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 274
at New_Music_Console.FolderListUC.SetItems() in C:\Visual Studio
Projects\Brand New Music Console\New Music
Console\UserControls\FolderListUC.vb:line 151
at New_Music_Console.FolderListUC.priorButton_Click(Object sender,
EventArgs e) in C:\Visual Studio Projects\Brand New Music Console\New
Music
Console\UserControls\FolderListUC.vb:line 178
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Unsa
feNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun
()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApp
licationModel()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(S
tring[]
commandLine)
at New_Music_Console.My.MyApplication.Main(String[] Args) in
17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Not sure what to tell you, especially since this is an issue with a
PowerPack, and not a "true" member of the .NET framework.

As far as I can tell you have about 3 options:

1) Report this to http://connect.microsoft.com/ (which is actually
monitored by Microsoft). Odds are it'll be marked as not being able to
be reproduced (unless you can provide a sample)

2) Sign up for help from Microsoft, such as an MSDN subscription. This
costs money and doesn't guarantee a fix.

3) Hope the PowerPacks are shared source and can be debugged into and
find the problem yourself. Not sure if they are, but here's
instructions for debugging into the "standard" framework code:
http://weblogs.asp.net/scottgu/arch...mework-library-source-code-now-available.aspx

Besides that all I can do is wish you good luck!

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/


Thanks,

I have reported lots of problem to Connect and like you say 100% of the time
it is not reproducable.

I will look into the debugging but I have not seen anything on the site to
point to the debugging versions.

LS
 
C

Chris Dunaway

System.ArgumentException was unhandled
Message="Parameter is not valid."
Source="System"
StackTrace:
at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.PushDataIntoControl(Control
ctl, String propertyName, Object data)
at
Microsoft.VisualBasic.PowerPacks.DataRepeaterBindingBase.ReadValue()
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.PushDataIntoRepeaterItem(DataRepeaterItem
repeaterItem)
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateItem(DataRepeaterItem
item, Int32 index)
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.GetFromTempItems(Int32 index)
at Microsoft.VisualBasic.PowerPacks.DataRepeater.MakeupDisplayItems()
at Microsoft.VisualBasic.PowerPacks.DataRepeater.UpdateView(Boolean
moveToCurrent, Boolean updateExistingItemAppearance)
at Microsoft.VisualBasic.PowerPacks.DataRepeater.SetDataConnection()
at
Microsoft.VisualBasic.PowerPacks.DataRepeater.set_DataSource(Object value)
at New_Music_Console.FolderListUC.SortByReleaseYear() in C:\Visual


The DataRepeater is trying to reflect the values of your object and
results in the ArgumentException you posted. Drilling down into the
System.ComponentModel.ReflectPropertyDescriptor.SetValue method using
Reflector reveals that the ArgumentException means:

"The elements of the parameters array do not match the signature of
the method or constructor reflected by this instance"

Is it possible that one of your objects has a NULL value that might
cause a problem with reflection? Just a guess.

You can download the .Net source code and try to debug into that
method and see what the values of the objects are when the exception
is thrown.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top