Uwp 应用程序在显示徽章时崩溃并出现错误 - 通知平台不可用

问题描述

我的应用程序因错误消息而崩溃,我无法理解 -

6268|2021-01-26T18:37:26.2933078+00:00|INFO|2|App|1/26/2021 2:37:26 PM = App_UnhandledException() EX = 通知平台不可用。

>

6269|2021-01-26T18:37:27.8193806+00:00|INFO|2|App|1/26/2021 2:37:27 PM = App_UnhandledException() StackTrace = 在 System.Runtime.ExceptionServices.ExceptiondispatchInfo .Throw() + 0x1c 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x60 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x36 在 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x16 在 System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0x9 在 MangoAppsUWP.viewmodels.Landingviewmodel.d_268.MoveNext() + 0xfb --- 从上一个抛出异常的位置开始的堆栈跟踪结束 --- 在 System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw() + 0x1c 在 System.Runtime.CompilerServices.AsyncmethodBuilderCore.c.b_7_0(Object) + 0x19 在 System.Action`1.Invoke(T) + 0x1e 在 System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x2b

6271|2021-01-26T18:37:28.0783858+00:00|FATAL|2|应用程序|应用程序崩溃:通知平台不可用。

6272|2021-01-26T18:37:28.0793909+00:00|FATAL|2|应用程序|应用程序崩溃:通知平台不可用。

6273|2021-01-26T18:37:29.6211570+00:00|INFO|2|App|1/26/2021 2:37:29 PM = App_UnhandledException() EX = 进程无法访问文件,因为它正在被另一个进程使用。

文件正在使用中。请在继续之前关闭文件。 没有足够的内存资源来处理此命令。 (来自 HRESULT 的异常:0x80070008)

还有一些可能与此相关的错误。 -

  1. WebSocket_MessageReceived Ex = 没有足够的内存资源来处理此命令。 (来自 HRESULT 的异常:0x80070008)

  2. 配额不足,无法完成请求的服务。 (来自 HRESULT 的异常:0x800705AD)

在这代码周围崩溃了

BadgeUpdateManager.CreateBadgeUpdaterForApplication().Clear();
            if (ObjFactory.Instance.CreateRuntimeData().BadgeMessageCount > 0)
            {

                XmlDocument badgeXml = BadgeUpdateManager.GetTemplateContent(BadgeTemplateType.BadgeNumber);
                XmlElement badgeElement = badgeXml.SelectSingleNode("/badge") as XmlElement;
                badgeElement.SetAttribute("value",ObjFactory.Instance.CreateRuntimeData().BadgeMessageCount.ToString());
                BadgeNotification badge = new BadgeNotification(badgeXml);
                BadgeUpdater badgeUpdater = BadgeUpdateManager.CreateBadgeUpdaterForApplication();
                badgeUpdater.Update(badge);
                UnreadAwayTextMessage();
            }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)