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

  • Home
  • SEARCH
  • 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 8085533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:09:10+00:00 2026-06-05T18:09:10+00:00

What I want: get a xml from the AppData to use What I code

  • 0

What I want:
get a xml from the AppData to use

What I code

   StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
   StorageFile sampleFile = localFolder.GetFileAsync("abc.xml");

What I get
Error: Cannot implicitly convert type ‘Windows.Foundation.IAsyncOperation’ to ‘Windows.Storage.StorageFile’

What I Check

When this method completes successfully, it returns a StorageFile that
represents the file.

from MSDN

What I have
Windows 8 Release Preview 64bit;
Visual Studio Express 2012 RC for Windows 8;
C#

I write the code according to the MSDN doc, Why does this error happen and how to resolve it?

  • 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-05T18:09:12+00:00Added an answer on June 5, 2026 at 6:09 pm

    Try using “StorageFile sampleFile = await localFolder.GetFileAsync("abc.xml")” if you’re in C# or “localFolder.GetFileAsnc("abc.xml").done(function (sampleFile) {})” if you’re using JS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want get weather from http://www.google.com/ig/api?weather= I use this // load xml result from
I want to get the CreateDate value from xml file the xml file is
I have one problem , I want to get some data from XML file
I want to get xml from: http://sportsfeeds.bovada.lv/basic/ATP.xml to fill it to a special table
I want to get values from a database and put them in an XML
I want to build simple camel application, which will get xml from URL and
I have the following code used to get xml from a DataSet into a
i want to get data from xml parser ? how can i get from
i want to get some value from xml file filtering with xml attribute. my
i want to get some value from xml file filtering with xml attribute. my

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.