Access to the path 'C:\Users\xxx\Desktop' is denied

后端 未结 5 438
-上瘾入骨i
-上瘾入骨i 2021-01-07 16:42

I have thoroughly searched the entire access denied questions and did\'t find any question related to access to windows form on my own system all the questions are related t

5条回答
  •  一生所求
    2021-01-07 17:16

    1. Make sure to use a fully qualified name, including the file name for both the destination and the source. (e.g. C:\Source\file.ext, C:\Destination\file.ext)

    2. Visual Studio should run with the same access rights as the folders you are trying to access. Trying to access something like "My documents" and other locations that you don't need elevated rights to access shouldn't require you to elevate Visual Studio.

    3. You should not have to "acquire" or change the permissions on files and folders that you can normally access from the same user that you are running VS in.

    LINK TO SOURCE: enter link description here

提交回复
热议问题