The given key was not present in the dictionary.

Server Error in '/IredellReport' Application.

The given key was not present in the dictionary.

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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 23:         'Locates a parcel and returns the object from the ArdGIS Server
Line 24:         Dim searchResultObject As Dictionary(Of String, Object) = FindParcel(requestedPIN)
Line 25:         Dim searchResultArray As Object() = TryCast(searchResultObject("results"), Object())
Line 26:         Dim searchResult As New Dictionary(Of String, Object)
Line 27:         'Loop through the result to find the correct PIN result

Source File: C:\Octopus\Applications\Mobile311Production\M311.Web.ClientSites\1.13.11\IredellReport\report.aspx.vb    Line: 25

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +39
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +69
   _report.StartLoadingData() in C:\Octopus\Applications\Mobile311Production\M311.Web.ClientSites\1.13.11\IredellReport\report.aspx.vb:25
   ASP.report_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Octopus\Applications\Mobile311Production\M311.Web.ClientSites\1.13.11\IredellReport\report.aspx:58
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4428


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974