This is a migrated thread and some comments may be shown as answers.
chart is not rendering in windows platform
10 Answers 15 Views
This is a migrated thread and some comments may be shown as answers.
Lakshmi
Top achievements
Rank 1
Lakshmi asked on 24 Mar 2016, 10:34 AM

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

Thanks & Regards,

Lakshmi Priya

10 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 28 Mar 2016, 06:30 AM
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
0
Lakshmi
Top achievements
Rank 1
answered on 28 Mar 2016, 08:02 AM

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

 

0
Lakshmi
Top achievements
Rank 1
answered on 28 Mar 2016, 08:57 AM

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?

0
Tsvyatko
Telerik team
answered on 28 Mar 2016, 10:14 AM
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
0
Lakshmi
Top achievements
Rank 1
answered on 28 Mar 2016, 12:20 PM

  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

 

0
Tsvyatko
Telerik team
answered on 30 Mar 2016, 03:17 PM
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
0
Lakshmi
Top achievements
Rank 1
answered on 01 Apr 2016, 07:34 AM

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.

 

 

0
Tsvyatko
Telerik team
answered on 06 Apr 2016, 07:19 AM
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
0
Lakshmi
Top achievements
Rank 1
answered on 07 Apr 2016, 09:10 AM

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

0
Pavel R. Pavlov
Telerik team
answered on 11 Apr 2016, 08:03 AM
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
Tags
Chart
Asked by
Lakshmi
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Lakshmi
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or