0

I am developing a metro app in C#/XAML. I was just coding my self a simple app for uploading and downloading files to my skydrive. I have followed this article, it says to register my app here. Moreover I searched and found [this][http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/ac748f7f-f077-4bc0-a3f5-1365288f72e7] thread, then I register my app at [here][https://manage.dev.live.com/build], so login is successful but when I try to upload something I am getting "Microsoft.Live.LiveConnectException" at this line.

await liveConnectClient.BackgroundUploadAsync("me/skydrive", file.Name, file, OverwriteOption.Rename);

How can I use skydrive for my app for downloading and uploading ? I can't find any good example. I also saw [PhotoSky][http://code.msdn.microsoft.com/windowsapps/Live-SDK-Windows-Developer-8ad35141] demo app but it also throws "Microsoft.Live.LiveConnectException".

4

2 回答 2

0

Make sure that your App capabilities include the internet (Client) capability. If it doesn't then you can allow it through your project properties.

http://msdn.microsoft.com/en-us/library/windows/apps/hh465399.aspx

Update:

I found a workaround to your issue here. It is the last post in the thread, see if it works for you. It suggests that you have to use IStorageFile for your file, if you're using that then I guess it's an issue with the Live SDK.

于 2012-09-24T06:17:44.947 回答
0

Problem solved. I didn't associated my app with store. I recommend to read each line of the MSDN document carefully to new users.

于 2013-04-12T19:08:07.713 回答