Bug 42873 - Exception with CarouselView 2.3.0-pre2
Summary: Exception with CarouselView 2.3.0-pre2
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-28 11:21 UTC by marco24690
Modified: 2016-08-01 22:22 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description marco24690 2016-07-28 11:21:00 UTC
I have updated my carouselview from -pre1 to -pre2, to solve the bug "sequence contain...", but now I have this exception when the page load.
"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation."
Comment 1 Paul DiPietro [MSFT] 2016-07-28 17:57:33 UTC
Could you provide a reproduction?
Comment 2 marco24690 2016-07-29 07:42:16 UTC
I have this problem also with an empty itemtemplate.

<ContentPage
  xmlns:cv="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"/>


 <cv:CarouselView  ItemsSource="{Binding Rooms}" HeightRequest="220" 
                    IsVisible="{Binding IsOpen}" >
    <cv:CarouselView.ItemTemplate>
        <DataTemplate></DataTemplate>
    </cv:CarouselView.ItemTemplate>
</cv:CarouselView>
Comment 3 marco24690 2016-07-29 08:13:53 UTC
I had to clean and rebuild the project after the upgrade.
Now it works well
Comment 4 adrianknight89 2016-08-01 20:02:18 UTC
if it's working, then please close this bug.