title: Windows 10 universal app, Exception thrown: 'System.UnauthorizedAccessException' in app.exe while accessing information of my device?
body: <p>I am newbie to windows app development and C#. When I try to run this code from my app  it says</p>
  
  <blockquote>
    <p>unauthorized exception thrown</p>
  </blockquote>
  
  <p>But Sample "MobileBroadband" app is executing same code smoothly on my Nokia 530</p>
  
  <pre><code> try
   { 
       var modem = MobileBroadbandModem.GetDefault();
       IMEI = modem.DeviceInformation.MobileEquipmentId;
       MANUF = modem.DeviceInformation.Manufacturer;
       MODEL = modem.DeviceInformation.Model;
       Debug.WriteLine("Imei " + IMEI+" MANUF: "+MANUF+" MODEL: "+MODEL);
   } catch (Exception e) {
   }
  </code></pre>