当我在后台调用ShellTile.ActiveTiles.First().Update时遇到typeloadexception [英] I got a typeloadexception when i call the ShellTile.ActiveTiles.First().Update in background

查看:70
本文介绍了当我在后台调用ShellTile.ActiveTiles.First().Update时遇到typeloadexception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打电话给我时,我得到了typeloadexception. ShellTile.ActiveTiles.First().Update(新StandardTileData {Count = Math.Min(99,count)})在后台,

I got a typeloadexception when i call the  ShellTile.ActiveTiles.First().Update(new StandardTileData {Count = Math.Min(99, count)}) in background,


coredll.dll      xxx_RaiseException            &nspsp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp    mscoree3_7.dll          sp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp                b mscoree3_7.dll          sp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp               
  mscoree3_7.dll            b&b               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp              TransitionStub的                nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp     
Microsoft.Phone.Interop.ComBridge.RegisterComDllInternal           b               nbsp; bsp               nbsp; bsp               nbsp; bsp        .TokenmanagerSingleton..cctor            b&b               nbsp; bsp               nbsp; bsp               nbsp; bsp                                         mscoree3_7.dll             spn               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp                b mscoree3_7.dll          sp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp                mscoree3_7.dll          sp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp                mscoree3_7.dll          sp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp             mscoree3_7.dll          sp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp                                                         Microsoft.Phone.Shell.ShellTileEnumerator..ctor            b ;              nbsp; b ;              nbsp; b ;              nbsp; b ;              ViewModels.PhoneServices.SetDefaultTileCount            b&b               nbsp; bsp               nbsp; bsp               nbsp; bsp BackgroundSync.ScheduledAgent.OnSyncCompleted        sp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp               nbsp; bsp            && nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; b               nbsp; bsp         System.Threading.ThreadHelper.ThreadStartHelper             b               nbsp; bsp               nbsp; bsp               nbsp; bsp              System.Threading.ThreadHelper.ThreadStart_Context              b               nbsp; bsp               nbsp; bsp ]
System.Threading.ExecutionContext.Run


coredll.dll       xxx_RaiseException                                                                                                                                mscoree3_7.dll                                                                                                                                                    mscoree3_7.dll                                                                                                                                             
 mscoree3_7.dll                                                                                                                                                                  TransitionStub                                                                                                                                  
Microsoft.Phone.Interop.ComBridge.RegisterComDllInternal                                                                                                        .TokenmanagerSingleton..cctor                                                                                                                   mscoree3_7.dll                                                                                                                                                    mscoree3_7.dll                                                                                                                                               mscoree3_7.dll                                                                                                                                               mscoree3_7.dll                                                                                                                                              mscoree3_7.dll                                                                                                                                                                     Microsoft.Phone.Shell.ShellTileEnumerator..ctor                                                                                                                ViewModels.PhoneServices.SetDefaultTileCount                                                                                                   BackgroundSync.ScheduledAgent.OnSyncCompleted                                                                                                                                                                                                                          System.Threading.ThreadHelper.ThreadStartHelper                                                                                                                System.Threading.ThreadHelper.ThreadStart_Context                                                                                            
System.Threading.ExecutionContext.Run   

推荐答案

不要尝试更新第一个图块,因为那是您的应用程序固定图块(即使未固定).您只能更新从索引1(即第二个项目)开始的应用程序创建的图块.
Don;t try and update the very First tile because that is your application pinned tile (even if it is not pinned).  You can update only the tiles your app created starting from index 1 (i.e. second item onwards).


这篇关于当我在后台调用ShellTile.ActiveTiles.First().Update时遇到typeloadexception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆