ASP.Net: How do I find this error?
<p>I'm getting the following error when I try to run an ASP.Net page. It just popped up during development, and I don't know what the cause is.</p>

<p>"OverflowException Occurred. Value was either too large or too small for an Int32."</p>

<p>The line the debugger breaks on is of absolutely no help at all</p>

<pre><code>Dim ApproxDate As TextBox = FormView1.FindControl("CurrentResultDateTextBox")
</code></pre>

<p>The error is occurring on this line because calling findControl on FormView1 causes it to databind (executes a SQL query to return the dataset). I assume the error lies somewhere in one of the object data sources or possibly one of the grid views on the page, but the debugger won't tell me where. Most of the page data sources are bound declaratively (specified in ASP tags in the source)</p>

<p>Pressing F11 to run past the exception displays the following:</p>

<p>"13712696100373320501120906 is not a valid value for Int32."</p>

<p>The value being shown here is the primary key for the main SQL table used by the page. There are about 10 data sources which use this field. Again, there's no indication of where exactly the error is occurring.</p>

<p>So how can I debug an error like this? Are there commands I can run? IIS error logs? 3rd party software to capture the error? I'll take anything I can get</p>
