TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rama Krishna
NA
363
36.4k
Method executing at unexpected time error
Oct 3 2018 2:04 AM
Hi all,
Can anyone help me like when I'm reading the local storage file using async call it's not going forward from that line, If I use sync call it's giving "method executing unexpected time error" in UWP app, Please help me on this.
Sample code :
Task.Run(
async () =>
{
Model m = new Model();
Windows.Storage.StorageFile sf = await storageFolder.GetFileAsync(fileName);
var res = Windows.Storage.FileIO.ReadTextAsync(sf).GetResults();
var Data = JsonConvert.DeserializeObject<m>(res);
}).Wait();
Thanks in advance
Reply
Answers (
11
)
Enter Key Event
Purpose of static classes in C#