CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

OT: A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

Last post 01-07-2009, 8:19 AM by triplea. 2 replies.
Sort Posts: Previous Next
  •  12-31-2008, 8:45 AM 29423

    OT: A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

    This is of course something that I am doing wrong but I cannot pipoint where it is occuring. I have a usual editable form and the moment I assign the main datasource to my CSLA object as per usual:

    myBindingSource.DataSource = myBoObject;

    in the Output window I get a couple of the following messages:

    A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

    I think it has a (slight) performance hit but more than anything it bugs me that I cannot find out the source of the problem. Is there anyway of finding out where these exceptions get generated?

    Thanks

  •  01-05-2009, 9:19 AM 29470 in reply to 29423

    Re: OT: A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

    You could probably set VS to break on all exceptions, and if you have the pdbs for the .net framework you should be able to see the code.

    My experience though is that these messages print, and I'm not sure why... but it looks like the exception is handled in the library and you needn't worry about it unless your form isn't working.
  •  01-07-2009, 8:19 AM 29532 in reply to 29470

    Re: OT: A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

    Thanks I didn't know you could (or how to) do that. For anyone who might care:

    http://blogs.msdn.com/davidklinems/archive/2005/07/19/440632.aspx

    In my case these occur in my code but could never pin point where they occured. Now its fixing time...

View as RSS news feed in XML

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems