We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Exception while launching the application

Thread ID:

Created:

Updated:

Platform:

Replies:

130449 May 13,2017 04:00 PM May 15,2017 07:25 AM Xamarin.Forms 1
loading
Tags: SfCarousel
Refka
Asked On May 13, 2017 04:00 PM

Hello,

i am trying to implement the carousel, but i am getting this exception :

Exception thrown: 'System.NullReferenceException' in Syncfusion.SfCarousel.XForms.UWP.dll
Exception thrown: 'System.NullReferenceException' in System.Private.CoreLib.ni.dll

all i did is adding the references to the projects, and then this : 


<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="SmartDirectory.Views.FeedBackPage" BackgroundColor="Yellow"
             xmlns:syncfusion="clr-namespace:Syncfusion.SfCarousel.XForms;assembly=Syncfusion.SfCarousel.XForms">
     <ContentPage.Content>
        <syncfusion:SfCarousel x:Name="Carousel"  BackgroundColor="CadetBlue"/>
    </ContentPage.Content>
   
</ContentPage>


the cs file of this view:

 SfCarousel carousel = new SfCarousel() { ItemWidth = 170, ItemHeight = 250 };
            ObservableCollection<SfCarouselItem> collectionOfItems = new ObservableCollection<SfCarouselItem>();
            collectionOfItems.Add(new SfCarouselItem() { ImageName = "1.png" });
            collectionOfItems.Add(new SfCarouselItem() { ImageName = "2.png" });
            collectionOfItems.Add(new SfCarouselItem() { ImageName = "3.png" });
            collectionOfItems.Add(new SfCarouselItem() { ImageName = "4.png" });
            collectionOfItems.Add(new SfCarouselItem() { ImageName = "5.png" });
            collectionOfItems.Add(new SfCarouselItem() { ImageName = "6.png" });
            carousel.DataSource = collectionOfItems;
            this.Content = carousel;



Rathana Kumar Sekar [Syncfusion]
Replied On May 15, 2017 07:25 AM

Hi Refka,

Thanks for contacting Syncfusion Support.

We have checked the reported issue "Application crash with Exception" from our side and we were unable to reproduce the reported issue. We have attached the sample which we have checked the reported issue. Please find the sample from the below link.

So could you please provide below mentioned details,

1)Modified sample which replicates the reported issue.
2)Currently using Essential Studio version.

It will help us to provide appropriate solution on this.

Regards,
Rathanakumar S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;