none
System.UnauthorizedAccessException: Access to the path "C:\Users\myfolder\Desktop\Newfolder is denied RRS feed

  • Question

  • I want to download a file from blobUrl to local path. I have written the code to download the file. But during execution I get the following error.

    System.UnauthorizedAccessException: Access to the path "C:\Users\myfolder\Desktop\Newfolder is denied. How to solve this issue? Please help me out.

    Thanks in advance.

    Monday, December 20, 2010 1:59 PM

Answers

  • Is this within an azure role in the development fabric? Or just a simple winform/wpf application? if the former, you'll have to download it to a local storage location that has been created within the role due to the security inherit in the application. if the later, then its likely just a simple access problem with the user that the code is running under. While the process/application is active, find it in your task manager and make sure that user has permission to write to your desktop.
    • Marked as answer by Mog Liang Monday, December 27, 2010 10:04 AM
    Monday, December 20, 2010 2:46 PM
    Moderator