会话状态服务失败暂停Prism应用程序

时间:2015-02-13 13:44:46

标签: c# wpf mvvm prism

我有一个使用MVVM的Prism Framework的应用程序。 我有两个ViewModel类:MainPageViewModel和DetailPageViewModel。 我尝试在DetailPageViewModel中挂起应用程序时遇到问题。当我在Visual Studio中单击“暂停”时,它会抛出一个异常“会话状态服务失败”。

   at Microsoft.Practices.Prism.Mvvm.SessionStateService.

<SaveAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Microsoft.Practices.Prism.Mvvm.MvvmAppBase.<OnSuspending>d__d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__3(Object state)
   at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()

0 个答案:

没有答案