I'm making the app and it involves crating a local account using textfiles etc. At first time run, the app is meant to navigate to the page called "MainPage" but, if the file "FTR.dat" doesn't exist in this certain folder then it will navigate to "CreateAccount" page but if the file "FTR.dat" does exist in that certain folder then it wil navigate to "MainPage"
but I get this nullrefrenceexception error: Here's my code:
Dim myIsolatedStorage As IsolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication()
If myIsolatedStorage.FileExists("PasswordManagerAccount/FTR.dat") = False Then
NavigationService.Navigate(New Uri("/CreateAccount.xaml", UriKind.Relative))
ElseIf myIsolatedStorage.FileExists("PasswordManagerAccount/FTR.dat") = True Then
NavigationService.Navigate(New Uri("/MainPage.xaml", UriKind.Relative))
End If
Thanks!