GeoLocation API not detecting current location when device is connected to Cellular Network? RRS feed

  • Question

  • I am currently facing an issue with GeoLocation API. I am not getting current location when my Windows tablet is connected to a cellular network. It works perfectly fine on Wifi. I get two error as stated below

    • The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
    • The pipe is being closed. (Exception from HRESULT: 0x800700E8)

    My code is below


    geolocator = new Geolocator();
                    geolocator.DesiredAccuracy = PositionAccuracy.High;
                    geolocator.DesiredAccuracyInMeters = 1000;
                    geolocator.MovementThreshold = 100;

                    //geolocator.ReportInterval = 500;
                        Geoposition mygeoPosition = await geolocator.GetGeopositionAsync();
                    catch(UnauthorizedAccessException ex)
                        UserMessageUtil.ShowMessage("Location is disabled in Settings");
                        await Launcher.LaunchUriAsync(new Uri("ms-settings-location:"));
                    geolocator.PositionChanged += geolocator_PositionChanged;

    Please, can someone suggest a perfect solution to resolve this issue. Even Microsoft's Sample doesn't detect current location and default bing maps also doesn't detect current location.

    Kinjan Bhavsar Software Engineer iTouchVision

    Monday, March 7, 2016 7:02 AM


  • The Geolocation API in Windows Phone has nothing to do with Bing Maps. It is a core Windows Phone library.


    Tuesday, March 8, 2016 12:12 AM