chart is not rendering in windows platform

11 posts, 0 answers
  1. Lakshmi
    Lakshmi avatar
    11 posts
    Member since:
    Nov 2014

    Posted 24 Mar Link to this post

    An exception that says "security failed" occured.Can you please suggest me any solution.

    Thanks & Regards,

    Lakshmi Priya

  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 28 Mar Link to this post

    Hello lakshmi,

    Thank you for contacting us. Could elaborate a bit more on the scenario this exception occurs - target technologies and setup (xaml,cs).

    Regards,
    Tsvyatko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Lakshmi
    Lakshmi avatar
    11 posts
    Member since:
    Nov 2014

    Posted 28 Mar Link to this post

    "Attempt by security transparent method 'DynamicClass.Telerik_DynamicGetter_Value(System.Object)' to access security critical type 'chartsample2.ChartViewModel+CategoricalData' failed."can you please help regarding this?

     

  5. Lakshmi
    Lakshmi avatar
    11 posts
    Member since:
    Nov 2014

    Posted 28 Mar Link to this post

    I have the following issue in windows platform while trying to render a chart in windows platform.

    "Attempt by security transparent method 'DynamicClass.Telerik_DynamicGetter_Value(System.Object)' to access security critical type 'chartsample2.ChartViewModel+CategoricalData' failed. 

    where chartsample2 is my solution name ,ChartViewModel is my class name 

    "can you please help regarding this?

  6. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 28 Mar Link to this post

    Hi Iashmi,

    From the exception, I assume you are binding Xamarin forms chart to Dynamic. Could you share with us the Viewmodel used to feed the control with data as well as the Xaml setup.

    Also, could you share whether you are targeting WinRT Windows Universal  - tablet/phone, rather than Universal Windows Platform.
    Regards,
    Tsvyatko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Lakshmi
    Lakshmi avatar
    11 posts
    Member since:
    Nov 2014

    Posted 28 Mar Link to this post

      class ChartViewModel
        {
            public ChartViewModel()
            {
                this.Data = GetCategoricalData();
            }

            public List<CategoricalData> Data { get; set; }

            public string Title { get; set; }

            public static List<CategoricalData> GetCategoricalData()
            {
                List<CategoricalData> data = new List<CategoricalData>
                {
                    new CategoricalData { Category = "A", Value = 6 },
                    new CategoricalData { Category = "B", Value = 8 },
                    new CategoricalData { Category = "C", Value = 10 },
                    new CategoricalData { Category = "D", Value = 7 },
                    new CategoricalData { Category = "E", Value = 8 },
                    new CategoricalData { Category = "F", Value = 7 },
                    new CategoricalData { Category = "G", Value = 6 },
                    new CategoricalData { Category = "H", Value = 9 },
                    new CategoricalData { Category = "I", Value = 10 },
                    new CategoricalData { Category = "J", Value = 7},
                    new CategoricalData { Category = "K", Value = 6}
                };

                return data;
            }
            public class CategoricalData
            {
                public object Category { get; set; }

                public int Value { get; set; }
            }
        }

     

    I am targeting windows phone

     

  8. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 30 Mar Link to this post

    Hi Iakshmi,

    I have prepared sample project based on the code snippet provided. Could look at it and let us know if you encounter any issues using it. Also, could you let us know if could run our samples located in C:\Program Files (x86)\Telerik\UI for Xamarin Q1 2016\Examples\XamarinForms

    Regards,
    Tsvyatko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  9. Lakshmi
    Lakshmi avatar
    11 posts
    Member since:
    Nov 2014

    Posted 01 Apr Link to this post

    when i am trying to run sample i encountered with issue .Please Find Attachment  for it.

    Also when I tried " global::Xamarin.Forms.Forms.Init();" i encountered withthe following issue

    There is no argument given that corresponds to the required formal parameter 'launchActivatedEventArgs' of 'Forms.Init(IActivatedEventArgs)' App41.WinPhone.

     

     

  10. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 06 Apr Link to this post

    Hello Iakshmi,

    Thank you for sharing this additional information. While this issue gave us some idea what can causing it, we are unable to reproduce it from our side. Could you share the version of Visual Studio using as well as the version Xamarin forms and Our controls you are using. Also, do you run the application without modifications or replace references. Finally, on what device emulator are you running the project?

    Regards,
    Tsvyatko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Lakshmi
    Lakshmi avatar
    11 posts
    Member since:
    Nov 2014

    Posted 07 Apr in reply to Tsvyatko Link to this post

    I am currently using Visual Studio 2015 and xamarin forms 5.10.1 .

    I ran application without doing doing any modifications.

    Lumia 640 LTE----on this device i am trying to deploy my app

  12. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 11 Apr Link to this post

    Hi Lakshmi,

    Xamarin Forms version 5.10 is not available, maybe you refer to the version of the Xamarin Studio? Could you please double check the version of XamarinForms? As far as I understand you encounter issues when trying to build your solution. Can you confirm that you can build any solution when there are no Telerik controls referenced in it?
    I have the feeling that you are trying to add the UWP projects to your solution manually. If this is the case, the people from Xamarin provided guides on that matter and they have done great job in explaining exactly how the projects should be added and configured. You can find a guide in their documentation and in this blog post.

    Let me try to summarize what we have till now in this communication. Regarding the initially reported "security failed" issue we cannot make any suggestion since we have not encountered it so far and there is not enough information to make any conclusion.

    Regarding the "Attempt by security transparent method 'DynamicClass.Telerik_DynamicGetter_Value(System.Object)' to access security critical type 'chartsample2.ChartViewModel+CategoricalData' failed." It seems that it is generic issue but we cannot make suggestion due to missing details. We could not reproduce the issue on our side and we could not investigate it.

    As for the "There is no argument given that corresponds to the required formal parameter 'launchActivatedEventArgs' of 'Forms.Init(IActivatedEventArgs)' App41.WinPhone" issue it is caused by wrong setup of the WinPhone project. The resources that I earlier referenced in this post cover in details how and where the Form.Init() method should be invoked. Please refer to them in order to fix your solution.

    Since you have provided us with the ViewModel that you are using and we were able to build a simple application using your code with no issues it seems that our components are not involved with the exceptions that you encounter.
    Please try to start from scratch following the provided by Xamarin tutorials and try to build a XamarinForms application without Telerik components. Once this is done then try adding the Telerik components and contact us if there are issues related with them. I would also like to turn your attention to that fact that if you provide us with more details we will be able to better understand your scenario and will have greater chance in assisting you on your way. In other words - the more detailed information you provide the greater the chance to assist you on your way is.

    I hope this is helpful.

    Regards,
    Pavel R. Pavlov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner