isolatedstorage

Getting “Operation not permitted on IsolatedStorageFileStream” saving jpg

谁说我不能喝 提交于 2019-12-22 17:22:13
问题 What is wrong? I am getting this error "Operation not permitted on IsolatedStorageFileStream" in this line: using (IsolatedStorageFileStream fileStream = myIsolatedStorage.OpenFile("folder\\" + fileName, FileMode.Create)) First time runs ok, but not the second time. string nameFile= e.UserState.ToString(); Stream stream = e.Result; using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { if (!myIsolatedStorage.DirectoryExists("folder")) {

Getting “Operation not permitted on IsolatedStorageFileStream” saving jpg

我与影子孤独终老i 提交于 2019-12-22 17:22:04
问题 What is wrong? I am getting this error "Operation not permitted on IsolatedStorageFileStream" in this line: using (IsolatedStorageFileStream fileStream = myIsolatedStorage.OpenFile("folder\\" + fileName, FileMode.Create)) First time runs ok, but not the second time. string nameFile= e.UserState.ToString(); Stream stream = e.Result; using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { if (!myIsolatedStorage.DirectoryExists("folder")) {

IsolatedStorageFile exception

余生长醉 提交于 2019-12-22 10:15:24
问题 I try to create IsolatedStorageFile with the following code: IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication(); but I get the following exception: IsolatedStoredException "Unable to determine application identity of the caller." What could be the possible reason of this? 回答1: If you're seeing this while debugging, you can resolve it by enabling ClickOnce security settings by going to the Security tab in your project's properties. This will simulate the manifest

Silverlight: Log4Net to Isolated Storage

試著忘記壹切 提交于 2019-12-21 20:21:57
问题 First, I know about Clog, and I do not want to implement this piece. The reason? We can't maintain severeal logging 'frameworks'. So to my question: Is it possible to implement log4net in a Silverlight application? What I want to achieve is logging to the Isolated Storage. I know, there's only 1 MB of storage available, but this limit can be increased (the user has to accept this, I know too). By the way, please don't provide me alternatives. I do only want to know if somebody implemented a

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%

Where is .NET “Isolated Storage” stored?

点点圈 提交于 2019-12-20 10:32:49
问题 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: Delete preferences in uninstaller?

五迷三道 提交于 2019-12-20 05:13:17
问题 Our application saves user preferences in isolated storage. However,it's proving tricky to remove these files from our uninstaller! I can enumerate all of the files in IsolatedStorage (using the MSDN example code), locate the ones that are related to our strongname key, and attempt to remove/delete them. Unfortunately, that's where it all falls apart: MaxSize is not defined for this store. An operation was performed that requires access to MaxSize. Stores obtained using enumeration APIs do

Automatic login process in Windows Phone 7.1 application

梦想与她 提交于 2019-12-20 03:10:57
问题 In my Windows Phone application( silverlight application ), I want the user to automatically get logged-in to the application once he logs in successfully. I.e I don't want the user to login everytime. I achieved this through a Isolated Storage file concept. I.e First I created a directory and I created an isolated storage file stream and stored the email and password credentials in some file. When I stopped debugging and start it back, my stream reader reads the email-password credentials

IsolatedStorageException: Unable to create the store directory

有些话、适合烂在心里 提交于 2019-12-20 00:57:11
问题 Hi I have to store some hidden information in Isolated space. For that I am using System.IO.Isolated class like IsolatedStorageFile isf = System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null); Stream writer = new IsolatedStorageFileStream(filename, FileMode.Create, isf); IFormatter formatter = new BinaryFormatter(); formatter.Serialize(writer, appCollection.ToString()); writer.Close(); It works fine in Windows XP but on

IsolatedStorageException: Unable to create the store directory

与世无争的帅哥 提交于 2019-12-20 00:54:49
问题 Hi I have to store some hidden information in Isolated space. For that I am using System.IO.Isolated class like IsolatedStorageFile isf = System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null); Stream writer = new IsolatedStorageFileStream(filename, FileMode.Create, isf); IFormatter formatter = new BinaryFormatter(); formatter.Serialize(writer, appCollection.ToString()); writer.Close(); It works fine in Windows XP but on