Error while opening Mainform in design view in WPF

Jul 13, 2010 at 1:28 PM
Edited Jul 13, 2010 at 1:29 PM
Hello, I'm getting the following error while trying to open your WPF application in design view.... Object reference not set to an instance of an object. at GMap.NET.Internals.Core.set_Zoom(Int32 value) in C:\Users\Sen\greatmaps-bf9bef9b1773 (1)\greatmaps_bf9bef9b1773\GMap.NET.Core\GMap.NET.Internals\Core.cs:line 98 at GMap.NET.WindowsPresentation.GMapControl.ZoomPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in C:\Users\sen\greatmaps-bf9bef9b1773 (1)\greatmaps_bf9bef9b1773\GMap.NET.WindowsPresentation\GMap.NET.WindowsPresentation\GMapControl.cs:line 149 at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Microsoft.Expression.Platform.WPF.WpfDependencyPropertyImplementation.SetValue(Object target, Object valueToSet) at Microsoft.Expression.DesignModel.Metadata.DependencyPropertyReferenceStep.SetValue(Object target, Object valueToSet) at Microsoft.Expression.DesignModel.Core.InstanceBuilderOperations.SetValue(Object target, IProperty propertyKey, Object value) at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.ModifyValue(IInstanceBuilderContext context, ViewNode target, IProperty propertyKey, Object value, PropertyModification modification) at Microsoft.Expression.DesignModel.InstanceBuilders.DependencyObjectInstanceBuilderBase`1.ModifyValue(IInstanceBuilderContext context, ViewNode target, IProperty propertyKey, Object value, PropertyModification modification) at Microsoft.Expression.Platform.WPF.InstanceBuilders.FrameworkElementInstanceBuilder.ModifyValue(IInstanceBuilderContext context, ViewNode target, IProperty propertyKey, Object value, PropertyModification modification) at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode) Any clues? Thanks
Coordinator
Jul 13, 2010 at 2:34 PM

fixed

Jul 13, 2010 at 4:07 PM
Thank You :-)
Dec 22, 2012 at 9:45 PM

It didn't work out for me too.

I used the DLL's from the latest build and yet I keep getting that 'Object not set to an instance of an object' error which is caused by setting the Zoom property. Well it would run perfectly despite the error, but then you can't work on design mode properly. You could omit the Zoom property and get no errors which would free your design mode, but you won't be able to see the map either way.

I'm talking about the WPF version only, no idea how's it going on Windows Forms