radmap not shown on radwindow

12 posts, 0 answers
  1. Mohd
    Mohd avatar
    19 posts
    Member since:
    Aug 2011

    Posted 21 Sep 2011 Link to this post

    in mainpage.xaml i have a button which opens a radwindow on clicking it.
    on the xaml of radwindow i have code like this..
      <Controls:RadMap x:Name="radMap" Grid.Row="0"  />
        </Grid>
    but i get error on debugging
    Failed to create a 'System.Windows.DependencyProperty' from the text 'AxisStroke'. [Line: 8 Position: 36]
    any help would be gr8...
    also how can i show multiple hotspots for the same point
    see attached pic.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Sep 2011 Link to this post

    Hello Mohd,

    Unfortunately we can't reproduce the problem using the Q2.2011 release. Could you, please, provide us with a small sample solution which reproduces it? Thanks.

    Best regards,
    Andrey Murzov
    the Telerik team

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

  3. DevCraft banner
  4. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 07 Feb 2012 Link to this post

    Actually I am having a similar issue.

    In my case I actually have a control using RadMap that throws exactly same thing.

    "Failed to create a 'System.Windows.DependencyProperty' from the text 'AxisStroke'. [Line: 8 Position: 36]"
    my message
    The type initializer for 'Telerik.Windows.Controls.Sparklines.RadSparklineBase' threw an exception.
    my inner exception
    {System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    File name: 'System.Windows.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at Telerik.Windows.Controls.Sparklines.RadSparklineBase..cctor()}
    and my stacktrace:
       at System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(RuntimeType type)
       at System.Windows.DependencyProperty.QueryRegisteredProperty(String name, Type ownerType)
       at MS.Internal.ManagedTypeInfoProviderRPInvokes.LookupDependencyProperty(Type type, String name)
       at MS.Internal.ManagedTypeInfoProviderRPInvokes.ResolveDependencyPropertyName(XamlTypeToken sTypeToken, String inPropertyName, XamlPropertyToken& outProperty, XamlTypeToken& outPropertyTypeToken)

    However I have no sparklines on this project.
    More info: exception is thrown by informationLayer.

    Is there some thoughts of what could be triggering it?
    Thanks for any help.

    PS. I have set my solutions to SL5, working with prism and Unity.
  5. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 07 Feb 2012 Link to this post

    OK.

    I have reverted my solution to SL4 and it did the trick...

    Is it planned to support SL5 soon? or it was not supposed to happen this way?...
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 10 Feb 2012 Link to this post

    Hi Ricardo,

    The SL5 is supported with the latest builds of the RadControls for Silverlight since 2011.Q3 SP1.

    Regards,
    Andrey Murzov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  7. MB
    MB avatar
    1 posts
    Member since:
    Aug 2008

    Posted 10 Feb 2012 Link to this post

    I had the same issue. 

    Solved it by adding a reference to System.Windows.Data.
  8. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 10 Feb 2012 Link to this post

    I will give it a try and then report back.
  9. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 14 Feb 2012 Link to this post

    Nopes... I've gone for it but not worked.

    Changed again to SL5, System.Windows.Data was already then and was right dll... even so removed and added it.
    Not working same message.

    It must be other thing...
    Reverted to SL4 and all ok.
  10. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 17 Feb 2012 Link to this post

    Hi,

    It is very complicated and it is hard to reproduce the problem without your solution.
    Possible reason could be in the following:
    - some of the required DLLs are not referenced or some DLL has incorrect version
    - required DLLs were built for different SL version than the one used in the project

    Usually the RadMap application required references for the three following DLLs:
    - Telerik.Windows.Controls.dll
    - Telerik.Windows.Controls.DataVisualization.dll
    - Telerik.Windows.Data.dll

    Please check that all of these DLLs are referenced in your project. Also make sure the Silverlight version of your project conforms with the referenced DLLs.

    Regards,
    Andrey Murzov
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  11. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 04 Mar 2012 Link to this post

    Andrey,

    I have set ticket request http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=518950 with project that reproduces what is happening.

    I will be waiting for feedback.
  12. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 07 Mar 2012 Link to this post

    Hello Ricardo,

    The DLLs you are using in the project are compiled for Silverlight 4 (the last digits in the version number are 1040). I've tested your application with the same version of the code (2011.3.1220), but compiled for Silverlight 5 (the last digits in the version number are 1050). All things work just fine. You should use DLLs compiled for proper version of the Silverlight.

    All the best,
    Andrey Murzov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  13. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 07 Mar 2012 Link to this post

    Hi. 
    I have already done upgrade to Q1 2012 with success.

    Thanks for help.

    PS. missing where to mark to resolved...
Back to Top
DevCraft banner