Hi Ich muss einige versteckte Informationen im isolierten Bereich speichern. Dafür verwende ich System.IO.Isolated Klasse wieIsolatedStorageException: Das Filialverzeichnis konnte nicht erstellt werden
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();
es in Windows XP funktioniert gut, aber auf dem Produktionsserver, auf dem Windows 2003 ist es zeigt Ausnahme
System.IO.IsolatedStorage.IsolatedStorageException: Kann nicht Erstellen Sie das Geschäftsverzeichnis.
Ich habe eine vollständige Kontrolle Berechtigungen in meinem asp.net Projektordner. Achtung CSoft.Core ist ein von mir erstelltes persönliches Framework.
Das ist mein Stack Trace:
[IsolatedStorageException: Kann nicht das Speicherverzeichnis erstellen. (Ausnahme von HRESULT: 0x80131468)]
System.IO.IsolatedStorage.IsolatedStorageFile.nGetRootDir (IsolatedStorageScope scope) +0
System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoamingUser (IsolatedStorageScope scope) +97
System.IO .IsolatedStorage.IsolatedStorageFile.GetRootDir (IsolatedStorageScope scope) +137
System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm (IsolatedStorageScope scope) +213
System.IO.IsolatedStorage.IsolatedStorageFile.Init (IsolatedStorageScope scope) +56
System.IO.IsolatedStorage.IsolatedStorageFile.GetStore (IsolatedStorageScope Umfang, Art domainEvidenceType, Typ assemblyEvidenceType) +59
CSoft.Core.IO.StorageHelper.Save (String Dateiname, String-Gehalt) in c: \ Projectos \ FrameworkCS \ CSoft.Core \ IO \ StorageHelper.cs: 18
CSoft.Web.UI.ViewStateHelper.SerializeViewState (HttpContext-Kontext, Objektstatus) in c: \ Projectos \ FrameworkCS \ CSoft.Web.Controls \ Web \ UI \ ViewStateHelper.cs: 65 CSoft.Web.UI.Page.SavePageStateToPersistenceMedium (Objektzustand) in c: \ Projekte \ FrameworkCS \ CSoft.Web.Controls \ Web \ UI \ Page.cs: 302
System. Web.UI.Page.SaveAllState() +236
System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1099
Bitte posten Sie die komplette Ausnahme, einschließlich aller InnerException. Fangen Sie die Ausnahme ab und veröffentlichen Sie das Ergebnis von ex.ToString(). –