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. Image for the cookie policy date
close icon

Exception while launching the application

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;



1 Reply

RK Rathana Kumar Sekar Syncfusion Team May 15, 2017 11:25 AM UTC

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. 


Loader.
Live Chat Icon For mobile
Up arrow icon