This is a migrated thread and some comments may be shown as answers.

System.InvalidOperationException

1 Answer 118 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Бежнар
Top achievements
Rank 1
Бежнар asked on 15 Nov 2010, 10:33 AM
Good day!
When the assembly is used by Silverlight 3 (if the client is Silverlight 3) does not work control RadChart. Moreover, if the client is Silverlight 4 application is running normally. Application falls, giving a message to the following:
System.InvalidOperationException
Layout measurement override of element 'Microsoft.Windows.Design.Platform.SilverlightViewProducer+SilverlightContentHost' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
or
System.InvalidOperationException
An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.
   at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnUnhandledException(Object sender, ViewUnhandledExceptionEventArgs e)
   at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnViewUpdated()
   at Microsoft.Windows.Design.Platform.ViewProducerBase.<get_DesignModeValueProviderService>b__7(IInstanceBuilderContext invokingContext)
   at MS.Internal.Services.DesignModeValueProviderService.ValueTranslationServicePropertyInvalidated(Object sender, PropertyInvalidatedEventArgs e)
   at MS.Internal.Features.DesignModeValueProviderConnector.ValueTranslationServiceImpl.InvalidateProperty(ModelItem item, PropertyIdentifier property)
   at MS.Internal.FrameworkElementControl.FrameworkElementDesignTimePropertiesAdorner.SetDesignResizeMode(Boolean updateView)
   at MS.Internal.FrameworkElementControl.FrameworkElementDesignTimePropertiesAdorner..ctor(ModelItem item)
   at MS.Internal.FrameworkElementControl.FrameworkElementDesignTimePropertiesGrabHandleAdornerProvider.Activate(ModelItem item)
   at Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context, ModelItem item)
   at MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item, IEnumerable`1 extensions)
   at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.OnPolicyItemsChanged(Object sender, PolicyItemsChangedEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Microsoft.Windows.Design.Policies.ItemPolicy.OnPolicyItemsChanged(PolicyItemsChangedEventArgs e)
   at MS.Internal.Policies.SoleSelectionPolicy.RaisePolicyItemsChanged(ModelItem oldSoleSelection, ModelItem newSoleSelection)
   at MS.Internal.Policies.SoleSelectionPolicy.OnSelectionChanged(Selection newSelection)
   at Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item)
   at Microsoft.Windows.Design.SubscribeContextCallback.Invoke(ContextItem item)
   at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item)
   at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.SetValue(ContextItem value)
   at MS.Internal.Designer.VSDesigner.VSDesignerClientImpl.RestoreSelection(List`1 selectionOffsetsInXamlFile)
   at MS.Internal.Designer.VSDesignerClient.RestoreSelection(List`1 offsetsInXamlFile)
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()
  
   
System.ArgumentException
Value does not fall within the expected range.
   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.UIElement_UpdateLayout(UIElement element)
   at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnViewUpdated()

Assembly, which displays an error:
00886RadControls_for_Silverlight_3_2010_2_1022_DEV
00904RadControls_for_Silverlight_3_2010_2_1105_DEV

Please help in correcting errors.
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 17 Nov 2010, 08:49 AM
Hi Бежнар,

We would appreaciate it if you could provide more information about your specific scenario, so that our developers could investigate what the cause may be. Please, open a support ticket and attach a sample application which reproduces the issue. Attaching the actual assemblies you're using would also be very useful.

Another thing to consider is that as of Q3 2010 we have discontinued support for RadControls for Silverlight 3, so the error you receive could be caused by using inaccurate version of the assemblies.

Regards,
Nikolay
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Tags
Chart
Asked by
Бежнар
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or