Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8457623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:51:20+00:00 2026-06-10T12:51:20+00:00

I try to upload a text file to my skydrive or at least create

  • 0

I try to upload a text file to my skydrive or at least create new text file in SD and edit it’s content, through SkyDrive API in my Windows 8 application.
How can I do that?

I tried to do something like that:

        LiveConnectClient client = new LiveConnectClient(session);
        var fileData = new Dictionary<string, object>();
        fileData.Add("name", "new_file.txt");
        try
        {
            LiveOperationResult fileOperationResult = await client.PutAsync("me/skydrive", fileData);
            this.infoTextBlock.Text = fileOperationResult.ToString();
        }
        catch (LiveConnectException exception)
        {
            this.infoTextBlock.Text = exception.Message;
        }

but I get error
“The provided request is not valid. The root SkyDrive folder cannot be updated.”
If I write something like “me/skydrive/” I get
“The provided URL is not valid. The requested path ” is not supported”.
Method LiveConnectClient.PutAsync allows me only to update existing properties (but not it’s content).

How it should be done properly?

Btw – Is content on LCDC(http://msdn.microsoft.com/en-us/library/live/hh826531.aspx) updated? I’m asking because some methods, which are in documentation, doesn’t exist in dlls (f.e. LiveConnectClient.Upload. There’s only BackgroundUploadAsync).

Thanks for help in advance,
Micheal

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:51:21+00:00Added an answer on June 10, 2026 at 12:51 pm

    Close but as I wrote: I can’t use client.upload method because LiveConnectClient class doesn’t contain it. That’s why I asked about site content update.

    Anyway – I’ve got an answer:

    //create a StorageFile (here is one way to do that if it is stored in your ApplicationData)
    StorageFile file = awaitApplicationData.Current.LocalFolder.GetFileAsync("yourfilename.txt");
    
    try {
       client = new LiveConnectClient(session);
       LiveOperationResult operationResult = await client.BackgroundUploadAsync("me/skydrive", file.Name, file, OverwriteOption.Overwrite);
    }
    catch (LiveConnectException exception) {
      //handle exception                
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to upload a file using asmx service from windows forms. I have
When I try to upload a simple text file with the Apache Commons FTPClient
I am new to git and when I try to upload my newly created
I try this command to upload a file (standard.xml) into table book the file
im trying to do a file upload using http post but when I try
I have the following script below where I try to mimic a file upload
I want to upload a text file received via AJAX request in Symfony2 (using
I'm using Kohana3 framework and Uploadify plugin for ajax file upload. When I try
When I upload an .ICS file to the server and try to download it,
I try to upload file from Dialog (JQuery UI) window like: $( .selector ).dialog(

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.