1. Windows Central Question's Avatar
    Good morning, I created with Visual Studio 2015 Enterprise an universal app that can store both LocalStorage than on OneDrive. On Pc everything works well, it connects with OneDrive; creates folders, files, etc. When I try the app on phone emulator cannot connect with OneDrive. It presents the connection mask and strangely, unlike the PC, also asks me the security code; at the end it says: We're having trouble signing in ! (Value does not fall within the expected range). With the physical device I cannot prove why Windows 8.1 is incompatible with Windows 10 . From what can it depend ?

    Public Async Function LogIn() As Task(Of Integer)
    Dim MyScopes As String() = New String() {"wl.signin", "wl.basic", "wl.offline_access", "onedrive.appfolder", "onedrive.readwrite"}
    Try
    MyOneDriveClient = OneDriveClientExtensions.GetClientUsingOnlineIdAuthenticator(MyScopes)
    If MyOneDriveClient.IsAuthenticated = False Then
    Await MyOneDriveClient.AuthenticateAsync()
    MyDriveOne = Await MyOneDriveClient.Drive.Request().GetAsync()
    MyRootItemOne = Await MyOneDriveClient.Drive.Root.Request().GetAsync()
    MyFolderOne = Await MyOneDriveClient.Drive.Special.AppRoot.Request().GetAsync()
    End If
    Catch ex As OneDriveException
    AspettaMessaggio("Non possibile connettersi con OneDrive.")
    Return 0
    Catch ex As Exception
    AspettaMessaggio("Non possibile connettersi con OneDrive.")
    Return 0
    End Try
    Return 1
    End Function
    02-24-2016 11:55 AM
  2. Jason Rosenthal's Avatar
    I maybe mistaken, but I thought you need pair your microsoft account to the phone in order for onedrive to work. The last time I tried I couldn't pair my account from within the emlulator. I haven't tried with 10, things may have changed. See if you can access onedive from within emulator first before testing your app.
    02-24-2016 12:32 PM

Similar Threads

  1. Cannot opt out of insider builds on Windows 10 build 14267
    By Ryujingt3 in forum Windows 10 Insider Preview
    Replies: 1
    Last Post: 02-29-2016, 06:07 AM
  2. Whether to stick with Windows 10 mobiles...
    By SanPedroUK in forum Windows 10 Mobile
    Replies: 13
    Last Post: 02-27-2016, 01:05 PM
  3. Call of Duty Black Ops III, Evolve discounted in this week's Xbox Deals with Gold
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 02-24-2016, 10:11 AM
  4. Round and Round we go with Loop Drive 2: Crash Race for Windows PC and Phone
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 02-24-2016, 07:50 AM
  5. Replies: 0
    Last Post: 02-24-2016, 06:58 AM
LINK TO POST COPIED TO CLIPBOARD