Where is .NET “Isolated Storage” stored?

老子叫甜甜 提交于 2019-12-20 10:33:09

问题


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.



来源:https://stackoverflow.com/questions/275536/where-is-net-isolated-storage-stored

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