我的UWP-APP仅包含一个MapControl。
此应用程序在WindowsServer 2019版本上崩溃。 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)
在事件日志中,我有一个条目:
Pfed des fehlerhaften模块:C:\ Windows \ System32 \ Windows.UI.Xaml.dll
Apps using the MapControl will crash unless the Downloaded Maps Manager service is enabled. Windows Server默认情况下禁用“下载的地图管理器”服务。
在Windows的更高版本(1903+)上,如果禁用了该服务,则MapControl不会崩溃,但仍然无法加载任何地图数据。您的应用可以通过检查MapControl的LoadingStatus是否为MapLoadingStatus.DownloadedMapsManagerUnavailable来处理此问题。