This is a migrated thread and some comments may be shown as answers.

Bug report

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tariq
Top achievements
Rank 2
Tariq asked on 08 Oct 2012, 06:02 AM
I'm using the Storage classes, (Local and Temporary folders). These are my methods:
public static async Task<string> ReadLocal(string key)
{
    String content = string.Empty;
    try
    {
        StorageFile sampleFile = await ApplicationData.Current.TemporaryFolder.GetFileAsync(key);
        content = await FileIO.ReadTextAsync(sampleFile);
        // Data is contained in timestamp
    }
    catch 
    {
        // Timestamp not found
    }
    return content;
}
public static async Task WriteLocal(string key, string content)
{
    StorageFile sampleFile = await ApplicationData.Current.TemporaryFolder.CreateFileAsync(key, CreationCollisionOption.ReplaceExisting);
    await FileIO.WriteTextAsync(sampleFile, content);
    return;
}

It works fine, but once I add RadMetro controls as a reference, the readlocal method starts to throw an exception... (I don't even have to create any rad metro controls, adding the reference will crash the app)
I believe it clears the data from local storage or something, can you please help?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 10 Oct 2012, 03:00 PM
Hi Tareq,

Please refer to the support ticket you have opened about the same issue.

Greetings,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Tariq
Top achievements
Rank 2
Answers by
Georgi
Telerik team
Share this question
or