Working with Files - Access is denied

Terry Chan 21 Reputation points
2020-06-24T02:14:14.853+00:00

Hi,

I downloaded the sample from
https://video2.skills-academy.com/en-us/samples/xamarin/xamarin-forms-samples/workingwithfiles/

If I run it as UWP, I got an exception when saving.
System.UnauthorizedAccessException: 'Access to the path 'C:\Users\Terry\Documents\temp.txt' is denied.'

Would anyone tell me why it is denied?

Regards,
Terry

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,215 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 44,996 Reputation points Microsoft Employee
    2020-06-24T07:00:44.747+00:00

    @Terry Chan For better understanding the query: Are you referring to Azure Files Storage?

    If you are using Azure File storage you used be using SMB protocol.Store and Access Data in Azure Storage from Xamarin.Forms

    This forum is mainly concentrated on Azure-Files Storage.

    Based on your scenario I would recommended to post your query in Xamarin Forum File Handling (Android and IOS) or create an issue or ask on the Xamarin Forums.. These forum community members could provide their expert guidance on your scenario based on their experience. Thanks.

    Additional information: Based on the error message I want to refer to this SO thread which may give some idea on your issue.

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------------------

    Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful