﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Exception thrown.  How do I know what control did it?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 13 Sep 2026 22:01:38 GMT</lastBuildDate><ttl>20</ttl><item><title>Exception thrown.  How do I know what control did it?</title><link>http://forum.strataframe.net/FindPost6878.aspx</link><description>Greetings!&lt;br&gt;
&lt;br&gt;
I started using SF just this week and have a very basic question about working with it.&lt;br&gt;
&lt;br&gt;
When I manage to break SF the stack traces aren't too handy.  For example, we just moved all of the SF BO's out of the main project and put them into their own.  Consequently, the project compiles fine, but I end up getting errors at run-time and a stack trace.&lt;br&gt;
&lt;br&gt;
I'm not so concerned with fixing the actual error, but wondering just what the best way to figure out the source of the error is?  Specifically figuring out which control is blowing up!  I can't find any indication of this in the error message.&lt;br&gt;
&lt;br&gt;
Thus far the only thing I can think of is to remove controls from the webpages one by one until I figure out what the offending control is.  That seems far from optimal, however.&lt;br&gt;
&lt;br&gt;
If anybody has suggestions I'm all ears!</description><pubDate>Fri, 16 Feb 2007 10:49:57 GMT</pubDate><dc:creator>Justin Buist</dc:creator></item><item><title>RE: Exception thrown.  How do I know what control did it?</title><link>http://forum.strataframe.net/FindPost6884.aspx</link><description>Yeah, I should have thought of that in the original message. :)&lt;br&gt;
&lt;br&gt;
[codesnippet]Value cannot be null.&lt;br&gt;
Parameter name: type &lt;br&gt;
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br&gt;
&lt;br&gt;
Exception Details: System.ArgumentNullException: Value cannot be null.&lt;br&gt;
Parameter name: type&lt;br&gt;
&lt;br&gt;
Source Error: &lt;br&gt;
&lt;br&gt;
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  &lt;br&gt;
&lt;br&gt;
Stack Trace: &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[ArgumentNullException: Value cannot be null.&lt;br&gt;
Parameter name: type]&lt;br&gt;
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +2797379&lt;br&gt;
   System.Activator.CreateInstance(Type type) +6&lt;br&gt;
   MicroFour.StrataFrame.UI.Web.WebListControl.PopulateComboFromBusinessObject(IWebListControl lstControl, ITypeResolver TypeResolver, Object[] Parameters) +696&lt;br&gt;
   MicroFour.StrataFrame.UI.Web.WebListControl.PopulateCombo(ListControl lstControl, ITypeResolver TypeResolver, Object[] Parameters) +117&lt;br&gt;
   MicroFour.StrataFrame.UI.Web.DropDownList.PopulateList(Object[] Parameters) +72&lt;br&gt;
   MicroFour.StrataFrame.UI.Web.DropDownList.ListBox_Load(Object sender, EventArgs e) +69&lt;br&gt;
   System.Web.UI.Control.OnLoad(EventArgs e) +99&lt;br&gt;
   System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +46&lt;br&gt;
   System.Web.UI.Control.LoadRecursive() +47&lt;br&gt;
   System.Web.UI.Control.LoadRecursive() +131&lt;br&gt;
   System.Web.UI.Control.LoadRecursive() +131&lt;br&gt;
   System.Web.UI.Control.LoadRecursive() +131&lt;br&gt;
   System.Web.UI.Control.LoadRecursive() +131&lt;br&gt;
   System.Web.UI.Control.LoadRecursive() +131&lt;br&gt;
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061&lt;br&gt;
[/codesnippet]</description><pubDate>Fri, 16 Feb 2007 10:49:57 GMT</pubDate><dc:creator>Justin Buist</dc:creator></item><item><title>RE: Exception thrown.  How do I know what control did it?</title><link>http://forum.strataframe.net/FindPost6879.aspx</link><description>It might be best to post the exception you're getting out here on the forum... when we see the message, we can tell you what might be causing the problems and point out what in the stack trace gave us that clue.</description><pubDate>Fri, 16 Feb 2007 10:39:59 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>