views:

221

answers:

1

My problem is similar but not the same as that exhibited in:

“Could not find file” when using isolated storage

I've written an application that saves user settings in a file in isolated storage, I'm using the user store for assembly storage.

The application checks for a file in isolated storage on startup and if it's not there assumes that it's the first time the applicaiton has been run and asks the user to configure it, this process then saves to Isolated storage.

In XP this works fine, I've not seen any issues what so ever, however I was running a Demo to the client on thier Vista laptop and when I ran the client for the 2nd time to show that the settings were saved the application couldn't find the file.

Are there any known issues that might cause this to happen in Vista and not XP?

Both references to retrieve Isolated storage are in the the same cs file, so it's definately the same assembly that making the call, and I didn't log in as another user so I know it's the same user.

A: 

Isolated storage location will change as soon as you change the application version.
The proper place to store application configuration is in \ProgramData for all users and \Users\\AppData for user settings.

Shay Erlichmen
Application version didn't change. Install, Run, Configure, Close, Run, Can't find file.
Omar Kooheji
maybe your application crash silently and didn't save the file.
Shay Erlichmen
No file is saved before exit. way before the application is closed.
Omar Kooheji