Hello I'm writing Windows phone application for working with OneDrive. My code is pretty simple: XAML:
<OneDrive:SignInButton Name="signInButton1"
Height="72"
Margin="152,436,144,0"
VerticalAlignment="Top"
ClientId="MYCLIENTID"
Scopes="wl.basic wl.photos wl.skydrive wl.offline_access wl.signin wl.skydrive_update"
SessionChanged="signInButton1_SessionChanged"
TextType="Custom" />
CS code:
private void signInButton1_SessionChanged(object sender, Microsoft.Live.Controls.LiveConnectSessionChangedEventArgs e)
{
if (e.Session != null && e.Status == LiveConnectSessionStatus.Connected)
{
Session = e.Session;
}
}
When I push drive sign in button Signin the window is opened and if i don't submit this window but instead just press the back button then the white screen is shown and I get:
An exception of type 'Microsoft.Live.LiveAuthException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary
User has not granted the application consent to access data in Windows Live
Could somebody help me with it?