RouteQuery HRESULT:0x80042706 [英] RouteQuery HRESULT: 0x80042706

查看:67
本文介绍了RouteQuery HRESULT:0x80042706的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

鉴于以下代码(我测试了所有可能的样本并且所有样本都相同):

Given the following code (I tested all possible samples and all are making the same):

... 。

           this.iRouteQuery = new RouteQuery();

           列表与LT;会有地理座标> wayPoints = new List< GeoCoordinate>(2);

            wayPoints.Add(this.iCurrentLocation);

            wayPoints.Add(this.iTargetAddressLatLong);
$
            this.iRouteQuery.Waypoints = wayPoints;

            //this.iRouteQuery.RouteOptimization = RouteOptimization.MinimizeTime;

            //this.iRouteQuery.TravelMode = TravelMode.Driving;

            this.iRouteQuery.QueryCompleted + = RouteQuery_QueryCompleted;

            this.iRouteQuery.QueryAsync();

           this.iRouteQuery = new RouteQuery();
            List<GeoCoordinate> wayPoints = new List<GeoCoordinate>(2);
            wayPoints.Add(this.iCurrentLocation);
            wayPoints.Add(this.iTargetAddressLatLong);
            this.iRouteQuery.Waypoints = wayPoints;
            //this.iRouteQuery.RouteOptimization = RouteOptimization.MinimizeTime;
            //this.iRouteQuery.TravelMode = TravelMode.Driving;
            this.iRouteQuery.QueryCompleted += RouteQuery_QueryCompleted;
            this.iRouteQuery.QueryAsync();

....

此方法内:

private void RouteQuery_QueryCompleted(object sender,QueryCompletedEventArgs< Route> e)

        {



$
            if(e.Error == null)

            {

private void RouteQuery_QueryCompleted(object sender, QueryCompletedEventArgs<Route> e)
        {


            if (e.Error == null)
            {

             .....

             .....

              } else if(e.Error.HResult == unchecked((int)0x80042706))// VDS_E_TARGET_SPECIFIC_NOT_SUPPORTED 0x80042706

              } else if (e.Error.HResult == unchecked((int)0x80042706)) //VDS_E_TARGET_SPECIFIC_NOT_SUPPORTED 0x80042706

         &NBSP;&NBSP;&NBSP;&NBSP; {

             {

               ///总是走到这里!

               ///ALWAYS GOES HERE!

              }

              }

我总是收到HResult 0x80042706。我正在为DEBUG而不是RELEASE构建,我也在移动电话和模拟器上收到这个。

I am always receiving HResult 0x80042706. I am building for DEBUG and not RELEASE and I receive this on the mobile phone and emulators too.

任何想法为什么?

我需要吗?甚至对于DEBUG的ApplicationId和AuthenticationToken?

Do I need even for DEBUG the ApplicationId and AuthenticationToken?

推荐答案

仅供参考:¥b $ b 通过将适当的区域地图下载到我的设备/模拟器,我能够解决这个问题...

FYI:
  I was able to work-around this problem by downloading the appropriate regional maps to my device/emulator...

 转到设置

  - > (刷到:)申请

    - > (选择:)地图 - > (点击:)"下载地图"

      - > (点击:)'+'(添加)

      - >深入到您感兴趣的区域,点击该项目并选择下载。

  Go to settings
  -> (swipe to:) applications
    -> (select:) maps -> (tap on:) "download maps"
      -> (tap on:) '+' (add)
      -> drill down to the region you're interested in, tap on the item and select download.

等待下载完成后再重新测试您的应用。

Wait for the download to complete before re-testing your app.


这篇关于RouteQuery HRESULT:0x80042706的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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