Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • Appreciate your reply, now it is clear what should I be doing to handle correctly. I did as you told and when I combined the results of exceptions in output window, it boils down to this " Object reference not set to an instance of an object at TestWeather.MainPage.<Button_Click>d__1.MoveNext() " But I never implemented MoveNext() method and it is no where to be found in solution as well. Commented Feb 14, 2016 at 15:05
  • Can you post the entire stacktrace? Commented Feb 14, 2016 at 15:11
  • at TestWeather.MainPage.<Button_Click>d__1.MoveNext() That is the entire stacktrace. Commented Feb 14, 2016 at 15:16
  • thats not the stack trace... it gives the whole path of the calls. Commented Feb 14, 2016 at 15:16
  • 1
    An alternate solution is to turn on first-chance exceptions in the Debug Settings; that obviates the need to add try/catch throughout your code. Commented Feb 14, 2016 at 20:21