I am new to windows app development. I am trying to execute a solution on my local machine using x64 platform. But whenever I execute a Buttom_Click event I am getting this exception
#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException += (sender, e) => { if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break(); }; #endif in App.g.i.cs file.
I am getting this exception when debugger hits the variable 'icon' below
private async void Button_Click(object sender, RoutedEventArgs e) { RootObject myWeather = await OpenWeatherMapProxy.GetWeather(20.0,30.0); string icon = String.Format("ms-appx:///Assets/Weather/{0}.png", myWeather.weather[0].icon); ResultImage.Source = new BitmapImage(new Uri(icon, UriKind.Absolute)); ResultTextBlock.Text = myWeather.name + " - " + ((int)myWeather.main.temp).ToString() + " - " + myWeather.weather[0].description; } It would be helpful if anyone can explain how to get rid of this exception and what is App.g.i.cs file.