chi*_*ef7 7 silverlight isolatedstorage windows-phone-7
我正在构建一个使用独立存储的Windows Phone 7应用程序.代码大多数时间都在工作,但我一直在随机获取IsolatedStorageExceptions:
{"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)
Run Code Online (Sandbox Code Playgroud)
该文件存在.我将所有IsolatedStorage用于内部使用块,所以我不应该在任何地方打开文件.
可能是什么导致了这个?
我怎样才能获得有关异常原因的更多详细信息?
不应该忽视的是,WP7 仍处于 Beta 阶段(您已经从 CTP 更新到 Beta 版本了,对吧?)。
考虑创建一个非常简单的应用程序,以主应用程序的方式操作独立存储,看看是否可以创建问题的小型存储库。完成后将其发送给 Microsoft,以便他们查看。
| 归档时间: |
|
| 查看次数: |
2124 次 |
| 最近记录: |