Using IMbnInterfaceManager.GetInterface to get IMbnInterface, success on Win8,but failed on Win8.1 for "Access is denied".


i wrote metro app mobile broadband connection status of system. main code follows:

public void initializemanagers()   {      try      {          // mbninterfacemanager          if (m_mbninterfacemanager == null)          {              m_mbninterfacemanager = (imbninterfacemanager)new mbninterfacemanager();          }             if (m_mbninterface == null)          {              m_mbninterface = getfirstinterface();          }      }      catch (exception e)      {          rootpage.notifyuser(parseexceptioncode(e), notifytype.errormessage);      }  }    private imbninterface getfirstinterface()  {      foreach (imbninterface mbninterface in m_mbninterfacemanager.getinterfaces())      {          return mbninterface;      }      return null;  }

it goes on win8 os, , can connection status successfully. failed on win8.1. exception is:

unexpected.exception occured:system.unauthorizedaccessexception:access denied.    @ microsoft.mbn.imbninterfacemanager.getinterface()    @ mobilebroadbandcomapi.mbapiimplementation.getfirstinterface()

i don't know if method imbninterface different on 2 os. can me?

best regards!

these apis mobile operators only.

jeff sanders (msft)

@jsandersrocks - windows store developer solutions @wsdevsol
getting started windows azure mobile services development? click here
getting started windows phone or store app development? click here
team blog: windows store & phone developer solutions
blog: http client protocol issues (and other fun stuff support)



Archived Forums T-U  >  Tailoring your Windows Store app for hardware and devices (archived)



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........