Navigation Samples failing with Silverlight 3 because of URIMapping

2 posts, 1 answers
  1. Yusuf
    Yusuf avatar
    15 posts
    Member since:
    Jan 2009

    Posted 17 Jul 2009 Link to this post

    The Books Sample and Car samples for Page Navigation are failing in Silverlight 3 with the following error.
    System.Windows.Markup.XamlParseException occurred
      Message="AG_E_PARSER_UNKNOWN_TYPE [Line: 8 Position: 26]"
           at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
           at BooksExample.App.InitializeComponent()
           at BooksExample.App..ctor()

    In order to debug the issue I tried the Silverlight Navigation Framework and that too failed. Further analysis showed that earlier navigation:Frame element we didn't specify the UriMapper. After explicitly setting the same it works fine. So is the issue with Book Sample similiar to this one? But I didn't see any property like UriMapper in the RadFrame? How to solve this issue?

    Thanks & Regards,
    Yusuf Nazami
  2. Answer
    Bobi avatar
    513 posts

    Posted 20 Jul 2009 Link to this post

    Hello Yusuf,

    This exception happens because you try to access internal or private resources .
    In order to have working example in Silverlight 3 you have to do the following:

    1.Go to Resource.Designer.cs ,  now you have the following code:

    [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
            internal Resource() {

    in order to work correctly  you have to make the constructor public:

    [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
            public Resource() {

    2.Go to App.xaml and verify that you reference the resource file correctly. For example :

    <local:Resource x:Key="Resources"/>

    I hope that this answers your question.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top