Error after instaling Q3 SP1

6 posts, 1 answers
  1. Josip Jaic
    Josip Jaic avatar
    19 posts
    Member since:
    Jul 2008

    Posted 11 Dec 2009 Link to this post


    I am getting this unhandled exception in Silverlight app after installing Q3 SP1
    page loads normaly,
    Method is fired that starts loading RIA context,
    Event is fired that context is loaded 
    in this event i load grid

    QueryableCollectionView

     

    view = new QueryableCollectionView ( ctxZadatak.Zadataks );

     

    rgvZadaci.ItemsSource = view;


    event finishes ok

    Application_UnhandledException is fired with this error:


    {MS.Internal.WrappedException: The given key was not present in the dictionary. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at MS.Internal.JoltHelper.GetLoadedAssemblyByFullName(String assemblyName, String assemblyVersion, String assemblyKey)
       at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
       --- End of inner exception stack trace ---}



    Any ideas ?
    tnx

  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 16 Dec 2009 Link to this post

    Hi Josip Jaic,

    Which version of Ria Services is used in your project? Is it the latest one (WCF Ria Services beta)? If not, could you please to download the latest release and try again.


    Sincerely yours,
    Milan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Josip Jaic
    Josip Jaic avatar
    19 posts
    Member since:
    Jul 2008

    Posted 18 Dec 2009 Link to this post

    Hi,

    I have migrated project to WCF RIA Beta,
    and it works ok with  Telerik 2009.3.1201.1030

    but when i put Telerik 2009.3.1211.1030
    or Telerik 2009.3.1208.1030

    i got same exception (see previous post)
  4. Josip Jaic
    Josip Jaic avatar
    19 posts
    Member since:
    Jul 2008

    Posted 18 Dec 2009 Link to this post

    Hi,

    I have done some additional tests.

    On   Loader _Completed method of my context if i put return like this:

    return

     

    ;  

     

     

    QueryableCollectionView view = new QueryableCollectionView ( ctxZadatak.Zadataks );

    rgvZadaci.ItemsSource = view;

    now it doesnt crash  (of course it does not load grid)

    But  if i put return like this. it throws error:

     

     

     

     

     

     

    QueryableCollectionView view = new QueryableCollectionView ( ctxZadatak.Zadataks );

    rgvZadaci.ItemsSource = view;

    return

     

    ;


    So i have replaced 

     

     

     

    QueryableCollectionView view = new QueryableCollectionView ( ctxZadatak.Zadataks );

    rgvZadaci.ItemsSource = view;

     

     

    with :

     

    rgvZadaci.ItemsSource = ctxZadatak.Zadataks;

     

     

    and now it works OK, but i dont have pager... and it works very slow.....

    here is my xaml

     

     

     

     

    <data:DataPager HorizontalContentAlignment="Left" Source="{Binding ItemsSource, ElementName=rgvZadaci}" Grid.Row="0" Grid.Column="1" PageSize="{Binding ElementName=txtPageSize, Path=Value, Mode=TwoWay}" IsTotalItemCountFixed="False" Margin="10,10,10,5" DisplayMode="FirstLastPreviousNextNumeric" />

     

     

     

     

     

     

     

     

     

     

    <telerikInput:RadNumericUpDown x:Name="txtPageSize" Value="20" Grid.Column="2" IsInteger="True"></telerikInput:RadNumericUpDown>

     

     

     

     

     

     

     

     

    </Grid>

     

     

     

     

     

     

     

     

     

     

    <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" HorizontalScrollBarVisibility="Auto" telerik:ScrollViewerExtensions.EnableMouseWheel="true" >

     

     

     

     

     

     

     

     

     

     

     

    <telerikGridView:RadGridView

     

     

     

    x:Name="rgvZadaci"

     

     

     

    CanUserFreezeColumns="False"

     

     

     

    FrozenColumnCount="1"

     

     

     

     

     

     

     

    AutoGenerateColumns="False"

     

     

     

    IsReadOnly="True"

     

     

     

    ShowGroupPanel="False"

     

     

     

    EnableRowVirtualization="True"

     

     

     

    EnableColumnVirtualization="True"

     

     

     

    DataLoadMode="Asynchronous"

     

     

     

     

     

     

     

    ScrollMode="Deferred"

     

     

     

     

     

     

     

     

    >

     

     

     

     

     

     

     

     

     

     

    <telerikGridView:RadGridView.Columns>

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_Detalji" Header="Detalji">

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn.CellTemplate>

     

     

     

     

     

     

     

     

    <DataTemplate>

     

     

     

     

     

     

     

     

    <Button Content="Detalji" x:Name="btnZadaciDetalji" Click="btnZadaciDetalji_Click" />

     

     

     

     

     

     

     

     

    </DataTemplate>

     

     

     

     

     

     

     

     

    </telerikGridView:GridViewDataColumn.CellTemplate>

     

     

     

     

     

     

     

     

    </telerikGridView:GridViewDataColumn>

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_Broj" Width="80" Header="Broj" DataMemberBinding="{Binding Broj}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_NazivProjekta" Width="150" Header="Projekt" DataMemberBinding="{Binding NazivProjekta}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_GrupeProjekta" Width="250" Header="Grupe projekta" DataMemberBinding="{Binding GrupeProjekta}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_Naziv" Width="150" Header="Naziv" DataMemberBinding="{Binding Naziv}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_VrstaZadatkaNaziv" Width="150" Header="Vrsta zadatka" DataMemberBinding="{Binding VrstaZadatkaNaziv}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_OdgovornaOsobaNaziv" Width="150" Header="Odgovorna osoba" DataMemberBinding="{Binding OdgovornaOsobaNaziv}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_Tim" Width="80" Header="Tim" DataMemberBinding="{Binding Tim}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_StatusNaziv" Width="100" Header="Status" DataMemberBinding="{Binding StatusNaziv}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_Pocetak" Width="100" DataFormatString="{}{0:d}" Header="Poźetak" DataMemberBinding="{Binding Pocetak}" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_Zavrsetak" Width="100" DataFormatString="{}{0:d}" Header="Zavrçetak" DataMemberBinding="{Binding Zavrsetak}" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_UtrosenoVrijemePlanirano" Width="100" DataFormatString="{}{0:0}" Header="Planirano (h)" DataMemberBinding="{Binding UtrosenoVrijemePlanirano}" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_UtrosenoVrijemeStvarno" Width="100" DataFormatString="{}{0:0}" Header="Utroçeno (h)" DataMemberBinding="{Binding UtrosenoVrijemeStvarno}" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_NazivPrioriteta" Width="150" Header="Prioritet" DataMemberBinding="{Binding NazivPrioriteta}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="rgvZadaci_dc_OsobaPrijavilaNaziv" Width="150" Header="Osoba prijavila" DataMemberBinding="{Binding OsobaPrijavilaNaziv}" IsSortable="True" IsFilterable="True" />

     

     

     

     

     

     

     

     

    </telerikGridView:RadGridView.Columns>

     

     

     

     

     

     

     

     

    </telerikGridView:RadGridView>

     

     

     

     

     

     

     

     

    </ScrollViewer>

     

     

     

     

     

     

     

     

    <data:DataPager HorizontalContentAlignment="Left" Source="{Binding ItemsSource, ElementName=rgvZadaci}" Grid.Row="2" Grid.Column="1" PageSize="{Binding ElementName=txtPageSize, Path=Value, Mode=TwoWay}" IsTotalItemCountFixed="False" Margin="10,10,10,5" DisplayMode="FirstLastPreviousNextNumeric" />

     

     

     

     



     

     

     

  5. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Dec 2009 Link to this post

    Hello Josip Jaic,

    When the grid is inside ScrollViewer or StackPanel will be measured with infinity height which will cause serious performance problems since there will be no virtualization and all rows will be created at once.

    Greetings,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Josip Jaic
    Josip Jaic avatar
    19 posts
    Member since:
    Jul 2008

    Posted 28 Dec 2009 Link to this post

    Hi Vlad,

     

    I have removed scrollviewer as you said, and
    i am now using RadControls_for_Silverlight_2009_3_1219_Dev

    It works OK now,

    Thank you

Back to Top