Sto costruendo un'applicazione Windows Phone 7 che utilizza l'archiviazione isolata. Il codice funziona la maggior parte del tempo, ma continuo a ricevere in modo casuale IsolatedStorageExceptions:Errori di isolamento isolati
{"An error occurred while accessing IsolatedStorage."}
There are no further details about the reason for the exception. Here is the stack trace:
at System.IO.IsolatedStorage.IsolatedStorageFile.DeleteFile(String file)
at MyApp.Core.Data.WindowsPhoneFileRepository.DeleteFile(String name)
at MyApp.Core.Domain.ThingService.SaveThing(Thing Thing)
at MyApp.Core.Domain.TrackedThingService.PersistThingLocally(TrackedThing Thing)
at MyApp.Ui.ViewModels.TrackViewModel.<.ctor>b__3(Thing Thing)
at GalaSoft.MvvmLight.Command.RelayCommand`1.Execute(Object parameter)
at GalaSoft.MvvmLight.Command.EventToCommand.Invoke(Object parameter)
at System.Windows.Interactivity.TriggerAction.CallInvoke(Object parameter)
at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
at System.Windows.Interactivity.EventTriggerBase.OnEvent(EventArgs eventArgs)
at System.Windows.Interactivity.EventTriggerBase.OnEventImpl(Object sender, EventArgs eventArgs)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Il file esiste. Metto tutti i miei usi di IsolatedStorage all'interno usando i blocchi quindi non dovrei avere il file aperto ovunque.
Cosa potrebbe causare questo?
Come posso ottenere maggiori dettagli sulla causa dell'eccezione?
Sì, sono aggiornato alla versione beta. Lo farò come ultima risorsa. Sicuramente c'è un modo per ottenere maggiori dettagli sull'eccezione. – chief7
@ Chief7: il debugger si ferma sulla linea in errore quando succede? – AnthonyWJones
No, ma posso aggiungerne uno. – chief7