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

3 posts, 0 answers
  1. Olivier
    Olivier avatar
    8 posts
    Member since:
    Dec 2010

    Posted 11 May 2012 Link to this post

    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. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 16 May 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Olivier
    Olivier avatar
    8 posts
    Member since:
    Dec 2010

    Posted 25 May 2012 Link to this post

    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.

Back to Top