Where is .NET “Isolated Storage” stored?

2020-05-21 08:36发布

问题:

Where would the physical files be?

回答1:

It depends on the OS and whether or not roaming user profiles are enabled.

For example, on XP, with non-roaming profiles, the location is

<SYSTEMDRIVE>\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\IsolatedStorage 

On Vista with roaming profile storage,

<SYSTEMDRIVE>\Users\<user>\AppData\Roaming\Microsoft\IsolatedStorage

See an Introduction to Isolated Storage for more info.



回答2:

%LocalAppData%\IsolatedStorage / %AppData%\IsolatedStorage.

I didn't find them under "Microsoft"



回答3:

System.Diagnostics.Process.Start(
    Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + 
    "\\IsolatedStorage"
    );


回答4:

On my XP workstation I found it under c:\Documents and Settings\\Local Settings\Application Data\Microsoft\Silverlight\is\XXXXXXXXXXXXX Where xxxxxxxx appears to be a random directory name. (under that if you wander around enough you should find the store for your particular app...)



回答5:

I've also seen it under %ProgramData%\IsolatedStorage (so often C:\ProgramData\IsolatedStorage).

This particular case was a Windows Server 2008 with IIS site-related data.



回答6:

I'm using Windows 8.1. On my PC its in C:\Users\mangesh\AppData\LocalLow\Microsoft\Silverlight\<followed by some random folder names>

In 'Silverlight' folder there are many random folders. You should find your files in one of these folders.



回答7:

Location differs per IsolationStorage scope

Local user     [LocalApplicationData]\IsolatedStorage
Roaming user   [ApplicationData]\IsolatedStorage
Machine        [CommonApplicationData]\IsolatedStorage

The folders can be retrieved by Environment.GetFolderPath method.

Windows 2016 has it like this

Local user     C:\Users\<user>\AppData\Local\IsolatedStorage
Roaming user   C:\Users\<user>\AppData\Roaming\IsolatedStorage
Machine        C:\ProgramData\IsolatedStorage

More details can be found here.