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

Upgrade Q3 2011 SP1 to Q1 2012 SL5: Value does not fall within the expected range

2 Answers 95 Views
Window
This is a migrated thread and some comments may be shown as answers.
Olivier
Top achievements
Rank 1
Olivier asked on 11 May 2012, 07:56 PM
Hi,

After I upgraded my application from SL4 to SL5, I needed to update the RadControls from Silverlight Q3 2011 SP1 to Q1 2012 and the following error started to appear whenever I try to show a RadWindow. Any ideas on how I could track down this bug? Thanks

Microsoft JScript runtime error: Unhandled Error in Silverlight Application Value does not fall within the expected range.   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
   at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
   at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, 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, Boolean isBindingInStyleSetter)
   at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.Setup(IWindowDragAware window)
   at Telerik.Windows.Controls.WindowBase.ShowWindow(Boolean isModal)
   at Telerik.Windows.Controls.RadWindow.Show()
   at DNA.Nexus.Client.View.ProductListView.HandleMessage(String message)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.Execute(T parameter)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.ExecuteWithObject(Object parameter)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToList[TMessage](TMessage message, IEnumerable`1 list, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToTargetOrType[TMessage](TMessage message, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.Send[TMessage](TMessage message)
   at DNA.Nexus.Client.ViewModel.ProductListViewModel.SelectProduct(Action`1 callback, Action cancelCallback)
   at DNA.Nexus.Client.ViewModel.PlaytestViewModel.SelectProduct()
   at DNA.Nexus.Client.ViewModel.PlaytestViewModel.CreateNewPlaytest()
   at DNA.Nexus.Client.ViewModel.PlaytestViewModel.HandleNavigatedToMessage(PageNavigatedMessage message)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.Execute(T parameter)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.ExecuteWithObject(Object parameter)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToList[TMessage](TMessage message, IEnumerable`1 list, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToTargetOrType[TMessage](TMessage message, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.Send[TMessage](TMessage message, Object token)
   at DNA.Nexus.Client.View.PlaytestView.OnNavigatedTo(NavigationEventArgs e)
   at System.Windows.Navigation.NavigationService.RaiseNavigated(Object content, Uri uri, Page existingContentPage, Page newContentPage)
   at System.Windows.Navigation.NavigationService.CompleteNavigation(DependencyObject content)
   at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)
   at System.Windows.Navigation.PageResourceContentLoader.BeginLoad_OnUIThread(AsyncCallback userCallback, PageResourceContentLoaderAsyncResult result)
   at System.Windows.Navigation.PageResourceContentLoader.<>c__DisplayClass4.<BeginLoad>b__0(Object args)

2 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 16 May 2012, 02:15 PM
Hello Olivier,

We are not aware of such problem. Could you please provide some more info on your scenario? It will be best if you could isolate the problem in a simple project but some code snippet would do the trick as well.

Kind regards,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Olivier
Top achievements
Rank 1
answered on 26 May 2012, 03:03 AM
After some investigation, I was able to resolve my issue. It turns out that in the previous version, I was able to put a RadWindow directly inside the xaml. For instance,

<vw:PopUpPage x:Name="Naming" Visibility="Collapsed"></vw:PopUpPage>

where the PopUpPage is

<telerik:RadWindow x:Class="SilverlightApplication.PopUpPage"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
     
    <Grid x:Name="LayoutRoot" Background="White">
        <TextBlock>
POPUP!!!!</TextBlock>
    </Grid>
</telerik:RadWindow>

In the new version, however, I cannot do that. I need to declare it in the code behind.

Tags
Window
Asked by
Olivier
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Olivier
Top achievements
Rank 1
Share this question
or