This is no exception.
I think this is an exception, it is that PhoneApplicationService not created. So you get a NullReferenceException .
Either add PhoneApplicationService = new PhoneApplicationService() to the line above, or make sure the following XAMLs are in your App.xaml
<Application.ApplicationLifetimeObjects> <shell:PhoneApplicationService Launching="Application_Launching" Closing="Application_Closing" Activated="Application_Activated" Deactivated="Application_Deactivated"/> </Application.ApplicationLifetimeObjects>
Claus jørgensen
source share