Advertisement

11.07.2007 at 06:48AM PST, ID: 22944644
[x]
Attachment Details

Exception has been thrown by the target of an invocation

Asked by ApexCo in Programming for ASP.NET

Tags: target, been, thrown, has, exception

I'm trying to save the contents of a list back to a database using the following code.

    Public Shared Sub SaveWorkItems(ByVal workItems As List(Of WorkItem))
        HttpContext.Current.Session("WorkItems") = workItems

        Dim tableadapter As New ReOrderTableAdapterTableAdapters.QuestionTableAdapter

        For Each item As WorkItem In ReOrderHelper.GetWorkItems()
            tableadapter.UpdateQuery(workItems.IndexOf(item) + 1, item.QID)
        Next item

    End Sub

And it keeps throwing me this error. Any ideas?

System.Reflection.TargetInvocationException was caught
  Message="Exception has been thrown by the target of an invocation."
  Source="mscorlib"
  StackTrace:
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Delegate.DynamicInvokeImpl(Object[] args)
       at System.Delegate.DynamicInvoke(Object[] args)
       at AjaxControlToolkit.ReorderList.Invoke(Object key, EventArgs e) in C:\Documents and Settings\dwebster\My Documents\Downloads\AjaxControlToolkit\AjaxControlToolkit\ReorderList\ReorderList.cs:line 1627
       at AjaxControlToolkit.ReorderList.OnItemReorder(ReorderListItemReorderEventArgs e) in C:\Documents and Settings\dwebster\My Documents\Downloads\AjaxControlToolkit\AjaxControlToolkit\ReorderList\ReorderList.cs:line 1594
       at AjaxControlToolkit.ReorderList.ProcessReorder(Int32 oldIndex, Int32 newIndex) in C:\Documents and Settings\dwebster\My Documents\Downloads\AjaxControlToolkit\AjaxControlToolkit\ReorderList\ReorderList.cs:line 1706
Start Free Trial
[+][-]11.14.2007 at 06:30AM PST, ID: 20280126

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 07:03AM PST, ID: 20280418

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 08:26AM PST, ID: 20281196

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 08:33AM PST, ID: 20281269

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 09:22AM PST, ID: 20281784

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 11:00AM PST, ID: 20282637

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 01:18PM PST, ID: 20283948

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 01:41PM PST, ID: 20284163

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.15.2007 at 08:46AM PST, ID: 20290354

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.15.2007 at 09:02AM PST, ID: 20290494

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.15.2007 at 10:54AM PST, ID: 20291343

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.15.2007 at 11:00AM PST, ID: 20291394

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.21.2007 at 10:17AM PST, ID: 20329783

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: target, been, thrown, has, exception
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.28.2007 at 09:18AM PST, ID: 20366999

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 01:04PM PST, ID: 20398658

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 01:08PM PST, ID: 20398708

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 04:04PM PST, ID: 20399966

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906