【问题标题】:UWP with BingMaps Crashes on WindowsServer 2019UWP 与 Bing 地图在 Windows Server 2019 上崩溃
【发布时间】:2020-04-20 12:56:29
【问题描述】:

我的 UWP-APP 只包含一个 MapControl。

此应用在 WindowsServer 2019 Ver. 上崩溃。 1809(内部版本 17763.1075)

它在 WindowsServer 2019 Vers 上运行良好。 1809(内部版本 17763.737)

我尝试在后面的代码中创建控件。 APP也崩溃了。但我遇到了以下异常:

********** 11.03.2020 09:49:39 ********** 异常类型:System.Runtime.InteropServices.SEHException 异常:外部组件已引发异常。 来源: 堆栈跟踪: 在 Windows.UI.Xaml.Controls.Maps.MapControl..ctor() 在 airformManager.PlannerViews.AboutPage.Page_Loaded(Object sender, RoutedEventArgs e)

在事件日志中我有一个条目:

Pfad des fehlerhaften 模块:C:\Windows\System32\Windows.UI.Xaml.dll

【问题讨论】:

    标签: uwp bing-maps windows-server


    【解决方案1】:

    Apps using the MapControl will crash unless the Downloaded Maps Manager service is enabled. Windows Server 上默认禁用已下载地图管理器服务。

    在更高版本的 Windows (1903+) 上,如果禁用该服务,MapControl 不会崩溃,但它仍然无法加载任何地图数据。您的应用可以通过检查 MapControl 的 LoadingStatus 是否为 MapLoadingStatus.DownloadedMapsManagerUnavailable 来处理此问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-01-22
      • 1970-01-01
      • 2018-01-25
      • 2016-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多