Visual studio 2015 模板10设置服务异常

Visual studio 2015 模板10设置服务异常,visual-studio-2015,template10,Visual Studio 2015,Template10,使用Template10 1.18,在VisualStudio中挂起应用程序时(使用生命周期事件),我看到“状态管理器设置值的大小已超过限制”。如下面的堆栈跟踪所示,Template10.Services.SettingsService.SettingsService.Write是直接涉及的。我知道一个答案是不使用设置服务,在挂起时对数据进行文件写入,但是Template10正在处理这个问题,所以最好让它这样做。 如果我必须关闭Template10设置服务,如何关闭?或者我可以重写该方法并避免使

使用Template10 1.18,在VisualStudio中挂起应用程序时(使用生命周期事件),我看到“状态管理器设置值的大小已超过限制”。如下面的堆栈跟踪所示,Template10.Services.SettingsService.SettingsService.Write是直接涉及的。我知道一个答案是不使用设置服务,在挂起时对数据进行文件写入,但是Template10正在处理这个问题,所以最好让它这样做。 如果我必须关闭Template10设置服务,如何关闭?或者我可以重写该方法并避免使用LocalSettings吗

NMA-Client.MCGINOP.dll!System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert(System.Collections.Generic.IDictionary _这是字符串键,对象值)第2176行C#NMA-Client.mcgitrop.dll!Windows.Storage.ApplicationDataCompositeValue.System.Collections.Generic.IDictionary.set_项(字符串 索引,对象值)行9704 C# Template10Library.dll!Template10.Services.SettingsService.SettingsService.Write(字符串 键,字符串值)未知 Template10Library.dll!Template10.Services.NavigationService.NavigationService.SaveNavigationSync()未知 Template10Library.dll!Template10.Services.NavigationService.NavigationService.SaveNavigationSync()未知 Template10Library.dll!Template10.Services.NavigationService.NavigationService.SuspendingAsync()未知 Template10Library.dll!Template10.Services.NavigationService.NavigationService.SuspendingAsync()未知 Template10Library.dll!Template10.Common.BootStrapper.HandleSuspending()未知 Template10Library.dll!Template10.Common.BootStrapper.HandleSuspending.AnonymousMethod__2()未知 Template10Library.dll!Template10.Common.DispatcherRapper.DispatcheAsync()未知 Template10Library.dll!Template10.Common.dispatcherRapper.dispatcheAsync(System.Func func,int delayms,Windows.UI.Core.CoreDispatcherPriority 优先级)未知 Template10Library.dll!Template10.Common.BootStrapper.HandleSuspending()未知 Template10Library.dll!Template10.Common.BootStrapper.HandleSuspending(对象 发件人,Windows.ApplicationModel.SuspendingEventArgs)未知 System.Private.SharedLibrary.Interop.Generated.dll!WINDOWS .Fask.ActucOctualPraseStHANDSL.No.KINKE(WINDOWS .BASIC .IASYNC) asyncInfo,uint progressInfo)C# NMA-Client.MCGINOP.dll!MCGINOP.ReverseComSharedStubs.Proc_对象__目标(对象 __这是System.Runtime.InteropServices.\uuu vtable\uIIinspectable*unsafe\u sender,void*unsafe\u e,System.IntPtr\uu methodPtr)行9745 C# NMA-Client.MCGINOP.dll!SuspendingEventHandler__Impl.Vtbl.Invoke__存根(System.IntPtr pComThis,System.Runtime.InteropServices.\uu vtable\uiInspectable* 不安全的发送程序, Windows.ApplicationModel.ISuspendingEventArgs\uu Impl.Vtbl**unsafe\u e) 第94537 C行#


模板10
SettingService
是针对
SettingHelper
的通用包装,面向90%的开发人员。您的应用程序似乎需要特殊的实现。您可以将现有设置服务复制到项目中以解决问题。我意识到10%的应用程序无法使用设置服务。你是幸运的10%之一。但是您的自定义包装器应该可以解决这个问题


在这里获取来源

谢谢Jerry,我认为这个答案很可能,但只是想确定一下。