Visualization Error

Every time I try to deploy my Xamarin.iOS app through Xamarin Live Player, I get this error:

Visualization Error
Object of type 'System.Func'1[System.Object]' cannot be converted to type 'System.Func'3[System.Object,System.EventArgs,System.Object]'. (ArgumentsException)

I have gotten Xamarin Live Player to work successfully with other apps so I am not sure what is wrong with this specific app to make it have this error. I also do not wish to start from scratch in creating a new project and copying things over because my project is already too in-depth.

Answers

  • mnajjarmnajjar Member

    did you arrange to solve this? I have the same problem!

  • ShelbySmithShelbySmith USMember
    @mnajjar Unfortunately not...
  • diego_giovadiego_giova Member

    @ShelbySmith.3365 @mnajjar That error means that you forgot to recive an argument in some function,
    In my case was an "object sender" and a "EventArgs e" on a function that change the main page:

    it was:

    async public void ShowRegister()
    {
    await Navigation.PushAsync(new RegisterPage());
    }

    and replaced to :smile:

    async public void ShowRegister(object sender, EventArgs e)
    {
    await Navigation.PushAsync(new RegisterPage());
    }
    fixed my particular problem

  • diego_giovadiego_giova Member

    @ShelbySmith.3365 @mnajjar also clear the cache on about > settings when the Xamarin Live can't connect to Visual Studio, and do not forget to verify your connection on about > Connection test

Sign In or Register to comment.