Xamarin Studio: Execution Failed. Object reference not set to an instance of an object.

ERROR:
 Xamarin Studio: Execution Failed. Object reference not set to an instance of an object.

ISSUE: 
When you try to run your project by menu item 'Run Item' from Xamarin Studio project, the top middle status bar shows the above error.

FIX:
1. Notice that in the top bar - the second dropdown is empty (Device list).
2. You have to set your project as a 'Set as Startup project' - (Right click on the project name to see this option in the popup menu)

- This is the situation when you have or had multiple projects in the solution or running the project inside an existing solution. The 'Run' command needs to know what project to associate with what device.


Comments

  1. This is probably the best, and helpful article to solve the Xamarin Developer error " Xamarin Studio: Execution Failed. Object reference not set to an instance of an object".

    Thanks for this post.

    ReplyDelete

Post a Comment