Exception thrown. How do I know what control did it?


Author
Message
Justin Buist
Justin Buist
StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)
Group: Forum Members
Posts: 17, Visits: 81
Greetings!



I started using SF just this week and have a very basic question about working with it.



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.



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.



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.



If anybody has suggestions I'm all ears!
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.
Justin Buist
Justin Buist
StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)StrataFrame Beginner (21 reputation)
Group: Forum Members
Posts: 17, Visits: 81
Yeah, I should have thought of that in the original message. Smile



Value cannot be null.

Parameter name: type

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.



Exception Details: System.ArgumentNullException: Value cannot be null.

Parameter name: type



Source Error:



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.



Stack Trace:





[ArgumentNullException: Value cannot be null.

Parameter name: type]

System.Activator.CreateInstance(Type type, Boolean nonPublic) +2797379

System.Activator.CreateInstance(Type type) +6

MicroFour.StrataFrame.UI.Web.WebListControl.PopulateComboFromBusinessObject(IWebListControl lstControl, ITypeResolver TypeResolver, Object[] Parameters) +696

MicroFour.StrataFrame.UI.Web.WebListControl.PopulateCombo(ListControl lstControl, ITypeResolver TypeResolver, Object[] Parameters) +117

MicroFour.StrataFrame.UI.Web.DropDownList.PopulateList(Object[] Parameters) +72

MicroFour.StrataFrame.UI.Web.DropDownList.ListBox_Load(Object sender, EventArgs e) +69

System.Web.UI.Control.OnLoad(EventArgs e) +99

System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +46

System.Web.UI.Control.LoadRecursive() +47

System.Web.UI.Control.LoadRecursive() +131

System.Web.UI.Control.LoadRecursive() +131

System.Web.UI.Control.LoadRecursive() +131

System.Web.UI.Control.LoadRecursive() +131

System.Web.UI.Control.LoadRecursive() +131

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search