Hi Everyone,
I am developing an App for downloading the File (Doc,ppt or pdf) from skydrive. i found some reference
code here http://msdn.microsoft.com/en-us/library/dn659730.aspx
when i tried to use the code with my Visual Studio 2013 , i am getting error in the following line.
async private void Button_Click(object sender, RoutedEventArgs e)
{
bool connected = false;
try
{
var authClient = new LiveAuthClient();
LiveLoginResult result = await authClient.LoginAsync(new string[] { "wl.signin", "wl.skydrive" });
if (result.Status == LiveConnectSessionStatus.Connected)
{
connected = true;
var connectClient = new LiveConnectClient(result.Session);
var meResult = await connectClient.GetAsync("me");
dynamic meData = meResult.Result;
}
}
catch (LiveAuthException ex)
{
// Display an error message.
}
catch (LiveConnectException ex)
{
// Display an error message.
}
Error Message:
An exception of type 'System.NullReferenceException' occurred in mscorlib.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object.
Please help me in that , i want to download files from skydrive (shared files , so that we do not need to login)
Thanks,
Ashok r