问题
I just installed visual studio 2010 on my win7 32 bit computer and i get the following message when I start it:
"the application data folder for visual studio cannot be created"
I had this same version of visual studio on my xp sp3 computer and it worked fine. I googled for various solutions but nothing worked. I tried to run:
"%programfiles%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /setup
and to edit the [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] AppData entry (but it was already okay). I tried to run as administrator.
Is there any other fix to this problem?
ps: after I installed visaul studio there was no desktop shortcut, the start menu folder was empty until I added premmisions for myself (I'm already admin...) and after that the start menu shortcit had no icon and didn't work so I had to run visual studion from the installation folders devenv.exe.
回答1:
It sounds like Visual Studio is having problems creating the following folder
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio
Or one of the sub folders it creates for storing data (10.0 for example). I would first try accessing that directory location or it's parent and make sure that your account has the proper permissions to create folders in that location.
回答2:
- Go to your AppData folder (c:\Users\\AppData)
- Right click, Security tab; click Advanced button.
- If your username is not in the "Group or user names" list, click the Edit button and add it.
- Give yourself full control.
- Make sure your select "apply to all subfolders".
- Restart Visual Studio.
回答3:
Mine was the same issue but for VS 2013. On your C:\Users\xxx\AppData\Local, find my Microsoft folder and Right-Click, properties, uncheck ReadOnly and make sure your name is under Security with full access. Then right-click on installer and try repair (or fresh install).
回答4:
I tried to right click and run VS2010 as administrator and it worked :D
回答5:
I solved my problem by changing permissions to the roaming folder, not local. %USERPROFILE%\AppData\Roaming\Microsoft\
I figured it out after reading this: http://tutewall.com/application-data-folder-for-visual-studio-could-not-be-created/
回答6:
With Windows 10 x64, I solved this probem running the IDE as Administrator (right clic > Run as administrator)
回答7:
if you have more than 1 vs versions installed, then simply change open with (or select vs 2015 or any stable version from upper open option) visual studio 2015 Then the solution is prepared and displayed. Thanks.
来源:https://stackoverflow.com/questions/7932319/visual-studio-2010-the-application-data-folder-for-visual-studio-cannot-be-crea