Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# uwp中的应用程序中心导致服务器执行失败0x80005_C#_Xaml_Uwp_Comexception_Visual Studio App Center - Fatal编程技术网

C# uwp中的应用程序中心导致服务器执行失败0x80005

C# uwp中的应用程序中心导致服务器执行失败0x80005,c#,xaml,uwp,comexception,visual-studio-app-center,C#,Xaml,Uwp,Comexception,Visual Studio App Center,我在我的uwp应用程序中使用AppCenter,要使用它,我在app.xaml.cs构造函数中有以下代码,就在initializecomponent()之后 代码(发生异常时) 请注意,应用程序在使用这行代码之前已经正常运行了很多天,并且在没有突然进行任何更改的情况下,它导致了这个问题 例外情况 {System.Runtime.InteropServices.ComeException(0x80080005):服务器执行失败(来自HRESULT的异常:0x80080005(协同执行服务器执行失败

我在我的uwp应用程序中使用AppCenter,要使用它,我在app.xaml.cs构造函数中有以下代码,就在initializecomponent()之后

代码(发生异常时)

请注意,应用程序在使用这行代码之前已经正常运行了很多天,并且在没有突然进行任何更改的情况下,它导致了这个问题

例外情况

{System.Runtime.InteropServices.ComeException(0x80080005):服务器执行失败(来自HRESULT的异常:0x80080005(协同执行服务器执行失败)) 位于System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pcmd) 在Windows.Networking.PushNotifications.PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync()中 在Microsoft.AppCenter.Push.Push.CreatePushNotificationChannel上(已创建操作“1”) 位于Microsoft.AppCenter.Push.Push.ApplyEnabledState(启用布尔值) 在Microsoft.AppCenter.Push.Push.OnChannelGroupReady上(IChannelGroup channelGroup,字符串appSecret) 在Microsoft.AppCenter.AppCenter.StartService(IAppCenterService)上 在Microsoft.AppCenter.AppCenter.StartInstance中(键入[]服务) 在Microsoft.AppCenter.AppCenter.PlatformStart(字符串appSecret,键入[]服务) 在Microsoft.AppCenter.AppCenter.Start(字符串appSecret,键入[]服务) 在FluentVideoPlayer.App..ctor()上 在FluentVideoPlayer.Program.c.b__0_0(ApplicationInitializationCallbackParams p)}

异常堆栈跟踪

“在Windows.Networking.PushNotifications.PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync()\r\n在Microsoft.AppCenter.Push.Push.CreatePushNotificationChannel(操作'1已创建)\r\n在Microsoft.AppCenter.Push.Push.ApplyEnabledState上的System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)\r\n(启用布尔值)\r\n位于Microsoft.AppCenter.Push.Push.OnChannelGroupReady(IChannelGroup channelGroup,String appSecret)\r\n位于Microsoft.AppCenter.AppCenter.StartService(IAppCenterService服务)\r\n位于Microsoft.AppCenter.AppCenter.StartInstance(Type[]services)\r\n位于Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret,Type[]服务)\r\n位于Microsoft.AppCenter.AppCenter.Start(字符串appSecret,类型[]服务)\r\n位于FluentVideoPlayer.App..ctor()\r\n位于FluentVideoPlayer.Program.c.b\u 0\u 0(ApplicationInitializationCallbackParams p)

注意

我以前没有收到此错误,但我在更新到vs 2017 15.7.2版本后收到了此错误。如果我在没有visual studio的情况下直接运行应用程序,我可以成功运行该应用程序。但当我尝试调试时,我收到此异常

min verson:创作者更新

目标版本:秋季创建者更新


我的操作系统版本:171672(内部人员构建快速环)

您是间歇性地还是总是出现此异常?您的操作系统构建版本是什么?您的项目目标/分钟版本是什么?@XavierXie MSFT请查看问题现在我添加了更多信息以确定是否存在SDK问题,您是否可以尝试直接调用
var channel=wait PushNotificationChannelManager.CreatePushNotificationChannelForAp应用程序中的applicationAsync();
(来自Windows.Networking.PushNotifications命名空间)?是否可以在没有内部操作系统构建的其他计算机上进行测试?是否尝试以管理员身份运行VS?
AppCenter.Start("{appCenterSecret}", typeof(Analytics), typeof(Push), typeof(Crashes));