CSLA .NET

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

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

rated by 0 users
This post has 2 Replies | 0 Followers

Top 25 Contributor
Posts 233
triplea Posted: Wed, Dec 31 2008 8:45 AM

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

Top 10 Contributor
Posts 3,715
Andy replied on Mon, Jan 5 2009 9:19 AM
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.
Top 25 Contributor
Posts 233
triplea replied on Wed, Jan 7 2009 8:19 AM

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...

Page 1 of 1 (3 items) | RSS

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?
Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems