getLanIdentifiers method returns access denied


  • Hello guys.

    I've got these lines:

    var networkInfo = Windows.Networking.Connectivity.NetworkInformation;
    var lanIdentifiers = networkInfo.getLanIdentifiers();

    and I'm getting an access denied exception. do I need to enable any capability to get this info?

    Luis Abreu

    Tuesday, April 03, 2012 9:19 PM


  • It seems like it needs the location capability. Probably someone should update the docs to mention that...

    Luis Abreu

    Wednesday, April 04, 2012 8:50 AM