Commenting out Location-related code.
Trying to isolate what's causing the exception. Commented out the declaration of NavBarDelegate, and a call System.Reflection.