Where is .NET “Isolated Storage” stored?

谁都会走 提交于 2019-12-02 23:26:19

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.

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

I didn't find them under "Microsoft"

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

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...)

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.

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!