Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.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# StoreServicesFeedbackLauncher不工作_C#_Uwp_Windows 10 - Fatal编程技术网

C# StoreServicesFeedbackLauncher不工作

C# StoreServicesFeedbackLauncher不工作,c#,uwp,windows-10,C#,Uwp,Windows 10,自Windows 10版本1809(Build 17763)以来,UWP应用程序的反馈中心的启动以以下错误结束:-1073741819(0xc0000005)“访问冲突” if (StoreServicesFeedbackLauncher.IsSupported()) { FeedbackRadioButton.Visibility = Visibility.Visible; } private async void LaunchFeedbackHub(object sender,

自Windows 10版本1809(Build 17763)以来,UWP应用程序的反馈中心的启动以以下错误结束:-1073741819(0xc0000005)“访问冲突”

if (StoreServicesFeedbackLauncher.IsSupported())
{
      FeedbackRadioButton.Visibility = Visibility.Visible;
}

private async void LaunchFeedbackHub(object sender, RoutedEventArgs e)
{
    try
    {                
        var launcher = StoreServicesFeedbackLauncher.GetDefault();
        await launcher.LaunchAsync();
    }
    catch (Exception ex)
    {
        Debug.WriteLine(ex.Message);
    }
}
有一个对Microsoft.Engagment.Framework的引用,并且安装了
Microsoft.Services.Store.SDK
。 该问题在调试模式和发布模式下都会发生


那可能是什么?

谢谢您的反馈,我已经向相关团队报告了这一点。请注意后续版本更新。目前,您可以使用以下wrokaround

switch (AnalyticsInfo.VersionInfo.DeviceFamily)
{
    case "Windows.Mobile":

        await Launcher.LaunchUriAsync(new Uri("windows-feedback:?contextid=30"));
        break;
    case "Windows.Desktop":

        await Launcher.LaunchUriAsync(new Uri("windows-feedback:?contextid=143"));
        break;

    default:
        break;
}

更新2/16:微软已经改变了方向,并在10.1901.28001中修复了此问题


原始答案:

这个API是出了名的不可靠

如果可能,我建议切换到更简单的方法。下面提供了一些示例(导致默认激活类型
URIFeedbackHome

启动反馈中心:

反馈中心:
启动反馈中心,包括[类别:应用程序]和[子类别:应用程序]

feedback hub://?appid=40459文件-New-Project.earlommu 1sdd7yawvg6ne!耳号
启动反馈中心,将配置文件选项卡作为活动选项卡

反馈中心://?tabid=6

目前还没有关于其他更复杂场景(例如提供键值元数据、附加屏幕截图等)的公开信息。

打电话查看Hub是否正确安装。但这并没有提供相同的功能。我不太了解您。你能详细描述一下吗?对不起,我的意思是,这只是打开了反馈中心,但不会让你为特定的应用程序提交新的问题(就像SDK中那样)。此外,SDK允许您将元数据附加到新问题上,但这也没有提供。这些ContextID不应在生产代码中使用,而应记录在上面的答案中。似乎有一个官方答案(不打算修复):这使得Rafael的答案更加相关。