Just Downloaded the WP7 SDK yestarday – And I’m new to Silver light – and Application development in general.
I’m just simply trying to Direct my user to a different page, but I have a NullRefernceException Error occur on a Line Of Code.
The Stupid thing – the code above it is exactly the same – yet doesn’t throw the error?
if (myISO.DirectoryExists("Logs") && myISO.DirectoryExists("DataStore"))
{
NavigationService.Navigate(new Uri("Sign-in.xaml", UriKind.Relative));
}
else
{
NavigationService.Navigate(new Uri("Welcome.xaml", UriKind.Relative));
//Above Line Causes Exception^
}
Also I get an NullRefernceException in App.xaml.cs – which I haven’t even changed – it WAS working – now it doesn’t :
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
it should be like this
where is your “/” ?