Results 1 to 2 of 2

Thread: [RESOLVED] Argument Exception was unhandled

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    Maidstone Kent UK
    Posts
    51

    Resolved [RESOLVED] Argument Exception was unhandled

    Having created a database and testing it I get the following error message,

    ARGUMENT EXCEPTION WAS UNHANDLED

    Public Class Form1

    Private Sub AddressBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddressBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.AddressBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.ThePhoneBookDataSet)

    End Sub

    The line

    Me.AddressBindingSource.EndEdit()

    being highlighted.


    My action during the test was to fill in a field, save it then changed the information within, only to get the above message.

    Whats gone wrong
    prme

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Argument Exception was unhandled

    The exception dialog that appears in visual studio when you do not handle an exception gives you more information than just the type of exception (in this case ArgumentException) - it should tell you exactly which argument and why it caused a problem. What else does it say?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width