提交到Visual Studio 2015中的github-错误:对应用程序数据的访问被拒绝 [英] Commit to github in Visual Studio 2015 - Error: access denied to Application data
问题描述
我什至无法使用Visual Studio 2015社区进行首次提交.新存储库的创建成功,并且在团队资源管理器"选项卡中看到要提交的文件,但是在按下提交"按钮后,发生了错误:
I can't make even the first commit using Visual Studio 2015 Community. Creation of the new repository successes and I see the files to commit in 'Team Explorer' tab, but after pushing the 'commit' button, the error occurs:
发生错误.详细信息:无法打开目录
'C:/Users/< UserName>/AppData/Local/Application Data/':访问被拒绝.
没有"Application Data"文件夹,它是/AppData/Roaming文件夹的链接.绝对,如果我尝试在资源管理器中自己打开此文件夹,则会收到相同的消息.在Windows注册表中,用户外壳文件夹"中有有效的链接.
There is no the 'Application Data' folder, it is the link to /AppData/Roaming folder. Definitely, I have the same message if I try to open this folder myself in explorer. In the Windows registry I have the valid link in 'User Shell Folders'.
您知道如何解决此问题吗?
Do you know how to fix this?
推荐答案
您好,Golikov.Kirill,
Hi Golikov.Kirill,
>>发生错误.详细消息:无法打开目录
'C:/Users/< UserName>/AppData/Local/Application Data/':访问被拒绝.
>>An error occurred. Detailed message: Could not open directory
'C:/Users/<UserName>/AppData/Local/Application Data/': Access denied.
>>绝对,如果我尝试自己在资源管理器中打开此文件夹,也会收到相同的消息.
>>Definitely, I have the same message if I try to open this folder myself in explorer.
您的意思是您的存储库路径为'C:/Users/< UserName>/AppData/Roaming".在你的本地机器上,对吗?如果是这样,为什么警告与另一个文件夹有关?
You mean that your repository path is "'C:/Users/<UserName>/AppData/Roaming" in your local machine, am I right? If so, why the warning is related to another folder?
此外,您的意思是如果您在窗口浏览器中打开该文件夹,仍然会遇到相同的问题,对吗?
In addition, you mean that if you open the folder in your window explorer, you still get the same issue, am I right?
如果是,是否是权限问题?您是否是Windows中的管理员?
If so, whether it is the permission issue? Whether you are the admin in your windows?
要确保它是否与权限问题有关,只需在其他驱动器磁盘(如D)中创建一个新的存储库,结果如何?看来我可以在社区版本中成功推送它.
To make sure that whether it is related to the permission issue, just create a new repository in other drive disk like D, how about the result? It seems that I could push it successfully in my community version.
最好的问候,
Jack
这篇关于提交到Visual Studio 2015中的github-错误:对应用程序数据的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!