This project is read-only.
1
Vote

Navagtion throw NaN exception - Bug

description

The navigator throws an error when an extent is specified saying "Value cannot be infinite or NaN.
Parameter name: System.Windows.CustomDependencyProperty"
 
Here is the stack trace
at System.Windows.Controls.Primitives.RangeBase.OnValuePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValue(DependencyProperty property, Double d)
at System.Windows.Controls.Primitives.RangeBase.set_Value(Double value)
at ESRI.ArcGIS.Client.Toolkit.Navigation.Map_ExtentChanged(Object sender, ExtentEventArgs args)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at ESRI.ArcGIS.Client.Map.raiseExtentChanged()
at ESRI.ArcGIS.Client.Map.<Map_SizeChanged>b__7()
at ESRI.ArcGIS.Client.ThrottleTimer.<.ctor>b__1(Object s, EventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

file attachments

comments

mnielsen wrote Jun 2, 2010 at 11:40 PM

Could you share an sample app, or at least all the steps (code+xaml) to reproduce this bug? Something more explicit than "when an extent is specified" would help us a lot for looking into this issue.

wrote Jun 2, 2010 at 11:41 PM

wrote Jun 15, 2010 at 5:14 PM

justincornell wrote Jun 15, 2010 at 5:14 PM

Sorry for the dealy. It appears that when all of the soc instances are down for a dynamicservice (exceeded their time they can be idle, or not up) the error occurs. Attached is a solution that you can use to test.

King_Dini wrote Apr 4, 2012 at 7:43 PM

Whatever happened to this issue? I have this same issue and it's as annoying as hell, I can't even debug my app unless I comment out the Navigation control.

My navigation control is as such:
<esri:Navigation x:Name="myNav" HorizontalAlignment="Right" VerticalAlignment="Top" Map="{Binding ElementName=myMap}" />

and my map as such:
<esri:Map x:Name="myMap" Background="#FF3F3F40" HorizontalAlignment="Left" VerticalAlignment="Top" WrapAround="True" Width="1000" Height="650" Foreground="White">
<esri:Map.Extent>
<esri:Envelope XMax="-48805280.4176923" YMin="1927217.73076923" XMin="-48449181.1869231" YMax="2158682.23076923" >
<esri:Envelope.SpatialReference>
<esri:SpatialReference WKID="102100"/>
</esri:Envelope.SpatialReference>
</esri:Envelope>
</esri:Map.Extent>

<esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />

</esri:map>

I took out a few of the other layers.

There is nothing fancy about this, but every time the page loads I get this stupid error about Value cannot be null or infinity. I know it's the navigation control since taking it out takes away the error.

All I did was to hook up the Navigation control to the Map and then all hell broke lose. The funny thing is, it happens when the map is set to the WKID of 102100.

//Houdini

wrote Feb 21, 2013 at 11:45 PM