FIX: Requested Registry Access is not allowed (Visual Studio 2008)
Symptom: in Visual Studio 2008, you attempt to add a new WebContentForm and associate it with a MasterPage. You receive an error dialog "Requested Reqistry Access is not allowed".
Don't ask me what caused this; I'm guessing that the registry keys involved had their access denied due to removal of a previous version of Visual Studio, leaving the new guy (Visual Studio 2008) in the lurch.
Here's the fix:
Download "subinacl" here. This is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.
After installing subinacl.exe (it will be in the C:\Program Files\Windows Resource Kits\Tools folder.), drop to a command prompt and run the following batch file, which you have saved in the same folder with the filename "FIX.bat":
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f
BAM! All fixed! Have fun.
Works great on Vista!
ReplyDeleteYou did all the hard work :)
Thank you... you saved me
ReplyDeleteDidn't work for me. I still get the same message when I try to open a new project.
ReplyDeleteI just posted a few minutes ago that it didn't work for me. However, I found this, and now it works: subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
ReplyDeletesubinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
thks! great solution :)
ReplyDeletethanks, also for my Vista Premium edition the second solution is perfect!
ReplyDeleteThis works. The second FIX worked for me on Vista. Let it run and VS will not have the issues anymore. I can't say how much I am thankful for finding this fix. THANKS!!!
ReplyDeleteCLOSE ALL COPIES OF VS2008.
ReplyDeleteDownload and Install SubInACL (AS ADMINISTRATOR)
Create bat file, with the lines provided above. Close it. Run bat (as administrator if your not an admin).
Works flawlessly on Vista Ultimate SP1 + VS 2008 Std installed ontop of VB/VWD 2008 Express Remenants.
I love you man!!!!!!1 You are great!!!!!!!!!!!!!! You save my life with this article!! XD Thank's a lot!!!!
ReplyDeleteworking great for me, thank you very much.
ReplyDelete====================
http://tvradionet.com
The 2nd solution looks like it changes the permissions on everything in the Registry. Is that the case?
ReplyDeleteI wanted something specific to VCSExpress, so I looked in the Registry for references to it. There were about 20 or so entries all of which said Access Denied when clicked.
However, running a batch file with these statements
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=system=f
gave access to the csproj entry.
Attempting to create a project in VCSEXpress still doesn't work, so I guess I'll have to run the same subinacl command against ALL relevant entries. Can a wildcard be used?
Most Excellent!!!
ReplyDeleteThanks a bunch.
The solution proposed by Peter didn't run on my computer, but someone from Microsoft helped me.
ReplyDeleteLook at the 2nd Gilles TOURREAU's answer. You just need to change something in the registery.
Have a look at : http://forums.microsoft.com/MSDN-FR/ShowPost.aspx?PostID=3457523&SiteID=12&mode=1
You've saved my life... thanks
ReplyDeleteDoes not work with registries in Windows x64 versions.
ReplyDeleteI Allowed to Administrator, Users, and System the whole HKEY_CURRENT_USER using the regedit GUI. Now I can view all keys that I can't see before. The problem is that the issue keeps on, when i create a new project, it saind "Requested registry access is not allowed" (Important data: with this modification, the error message appears in English [At the begining, appears in Spanish if you have vista in spanish])
ReplyDeleteOther ideas???
OS:Vista Busisness
App: Visual Studio 2008
150 more applications installed.
VS2008 worked with the same configuration before format mi PC.
thank you, very useful.
ReplyDeleteThanks a lot it worked.
ReplyDeletevery special thanks to you, !!! youknow, I think it is a shame for microsoft because they forgot to test their VS product on Windows Vista !! haha , but thanks any way, it works now !! :D
ReplyDeleteVERY VERY VERY thanks form ISTANBUL,TURKEY!
ReplyDeletethis was my big problem. Thanks a lot my firend :D
Çok sevaba girdin adamım ;)
thanks a bunch. the 2nd suggestion worked!!!
ReplyDeletewoot!! it works, the only problem is i got more then 200k files in the registry
ReplyDeleteDoesn't work for me. I don't have a fix.bat file and when I run the program, it flashes into a cmd screen for about half a second then returns. I try running in administrator but it doesn't work. How do I make this work im getting frustrated!!!! :( >-(
ReplyDeleteFor those who are lost. To create the batch file, open notepad and copy and paste the above lines.
ReplyDeleteThen save the file as fix.bat in the C:\Program Files\Windows Resource Kits\Tools folder.
When you run subinacl.exe, a dos box will open and then close.
After that, open command prompt (Start, type cmd, right click 'cmd' and run as administrator).
At the command prompt type:
cd C:\program files\windows resource kits\tools (hit 'enter')
fix.bat (hit 'enter')
The program will take a while to run. When it is finished you can run VS 2008.
BTW, the second fix worked for me.
Thx fellers!
neither worked for me. All the registries report that they failed.
ReplyDeleteam i missing something?
-I installed subinacl
-created "fix.bat" with 2nd solution where subinacl is found.
-ran subinacl (to test)
-ran cmd prompt under Admin and cd'd the folder and loaded the fix.bat file.
-it goes through 300,000+ registries before restarting the whole process over.
32bit vista
compaq presario F700
1.9ghz Athlon 64 X2.
Wow! Thank you very much!!!
ReplyDeleteyou also need to adjust the .sln, .vcs ,.vbz etc entries to get it to work...
ReplyDeleteI just used this line to get the VSEXPRESS issue corrected
ReplyDeletesubinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
Darrell
yay it worked!!! =) coool! thanks a lot guys.
ReplyDeleteThere are a lot of posts on this subject with many "broad stroke" fixes, but they all cause trouble because of their scope. I have narrowed it down to two registry keys(after several hours of trial and error). I used Acronis TrueImage Home 11's Try&Decide Feature to quickly un-do changes to my system. I am using Visual C# Express Edition 2008, on Vista Business Edition x64. Full Visual Studio may be different.
ReplyDeleteDownload and install "subinacl" from Microsoft.
Create a batch file with just the two lines below":
(You are granting full permissions to the "administrators", and "system" groups and read-only permissions to the "users" group.)
Save the file as "fix.bat" in the install directory that "subinacl" software was installed in (C:\Program Files (x86)\Windows Resource Kits\Tools)**
**32-bit versions of windows will probably be located at (C:\Program Files\Windows Resource Kits\Tools).
------------------------------------------------------------------------------
subinacl /subkeyreg HKEY_CLASSES_ROOT\.csproj /grant=administrators=f /grant=system=f /grant=users=r
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f /grant=system=f /grant=users=r
------------------------------------------------------------------------------
Both keys must have permissions set ... not just one.
Open a command prompt (with administrator rights), change the directory(cd) to where you saved the batch file (see above note).
Type in fix.bat
It will finish very quickly.
You should be able to create new VCS programs again.
Israel
********************** Visual C# 2005 Express Edition will probably use different keys ... instead of VCSExpress.csproj.9.0, I think it will be VCSExpress.csproj.8.0 instead. ************************ Browse your registry to check for sure.
hey
ReplyDeletedidn´t work for me :(
i tried all versions...
...but the weird thing is
i get an error in cmd when i type in -> fix.bat
it writes (in German:HKEY_CLASSES-ROOT:administrator 1337 Die Struktur der Sicherheitserkennung ist unzulässig
programm wird nicht ausgeführt
in english:HKEY_CLASSES-ROOT:administrator 1337 security identification is not valid
program will not be processed)
-> i have the german version :)
i have done all the things
1. run subinacl
2. create fix.bat file
3. open cmd and type in (cd C:\program files\windows resource kits\tools (enter)
fix.bat (enter)
=> error
i hope someone has a good idea for me because i am really frustrated and helpless.
maybe i did something wrong???
PS: vista ultimate
thx tom
In other languages the batch fil has to be modified according to the language.
ReplyDeleteIn German it has to be this way :
ubinacl /subkeyreg HKEY_CLASSES_ROOT\.csproj /grant = Administratoren=F /grant=system=F /grant = Benutzer=R
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=Administratoren=F /grant=system=F /grant=Benutzer=R
Theo
In other languages the batch fil has to be modified according to the language.
ReplyDeleteIn German it has to be this way :
ubinacl /subkeyreg HKEY_CLASSES_ROOT\.csproj /grant = Administratoren=F /grant=system=F /grant = Benutzer=R
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=Administratoren=F /grant=system=F /grant=Benutzer=R
Theo
Thanks baby, you are the best, very helpful!
ReplyDeleterespect rasta! worked perfectly!
ReplyDeletei friggin' love you man! the 2nd vista fix worked.
ReplyDeleteThnx to Peter for the solution and thnx to our anonymous friend from Germany for the hint: I spent some 20 minutes trying to find out where I was wrong, and it was my Russian Vista which uses Russian words for "administrators" and "users"))) I would never believe Windows does it!!! I was sure these Russian substitutes are only aliases, and the true names should be exactly "administrators" and "users". Seems quite logical as my localized copy uses "system" in its original English spelling.
ReplyDeleteThank you :) it worked for me on Vista Business x64
ReplyDeleteVery useful. Thanks a lot.
ReplyDeleteNone of these worked. Didn't try the broad spectrum, cause I don't wanna ruin the rest of my comp. Vista Home Premium, VS2008 Pro, registered, etc. used all the bat files located here, tried everything, fresh install, everything...I'll post a vid on youtube if wanted
ReplyDeletehelp is appreciated, cause Microsoft is useless
Hi ,thanks,if you add more then you can also solve silver light issues like below..........
ReplyDeletesubinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln90 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln90 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\._sln90 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\AgControl.AgControl /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\AgControl.AgControl /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\AgControl.AgControl /grant=system=f
Didn't work...any other way?
ReplyDeleteHey thanks...worked just fine on VB 2008 Studio Pro on Vista SP2 Beta
ReplyDeletei love you man.good job. and thomas explain very clear. u saved me.thanks
ReplyDeletethe second code worked for me but when i restarted my comp the sound wouldn't work, internet was disconnected, system restore failed and other system tools failed... nothing would open apart from internet (even though it said it was disconnected). so i restarted, pressed f11 and did system restore from there. so its back to normal now. but i tried the steps again and got VB working again with the second code, but when i restarted again it was the same as before. so i just did the system restore and gave up on VB. (running vista basic btw.)
ReplyDeleteThank you great work
ReplyDeleteYou saved loads of my effort. Thanks a ton.
ReplyDeleteThanks SO SO SO MUCH. Im an developer and could not get it to work. boy im studpid.
ReplyDeleteThanks you saved my day!
ReplyDeletethe codes really messed up my computer so i stopped using them, they messed up all the drives and had to system restore. But i downloaded visual basic 6.0 which worked, then i tried 2008 again and it worked? strange. after using vb6.0... 2008 suddenly started working o.O
ReplyDeleteI have been trying every solution available on the internet (almost). Just before I decided to give up I found out what I did wrong.
ReplyDeleteHave a look at one of the command lines...
****
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
****
I was looking at the line for a few minutes then I realized that my pc´s administrator account IS NOT CALLED "administrators" but instead its "administratorer" (danish).
So I changed from
****
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
****
to
****
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administratorer=f
****
Thats it...everything works now. I just like to remind you that the administrators/users/guests/systemsmay not be called the same from country to country/continent to continent.
Hope this helps out a few.
2 questions...
ReplyDeletedo i paste all the lines or 1 line?
do i have to restart my pc?
2 questions...
ReplyDeletedo i paste all the lines or 1 line?
do i have to restart my pc?
aahhh I love you guys.. this saved my life!
ReplyDeleteThanks for posting this. I used the initial post and the 3rd comment and my issue seems to be gone now (*.bat took around 20 minutes to run!). FWIW I believe I got the problem from installing SP1 for VS.NET 2008 on Vista... thanks a ton Microsoft.
ReplyDeleteAfter lots of trying, "VCSExpress.csproj.9.0" is the key for me. In Registry Editor, I could not even open the key before running the subinacl batch file.
ReplyDeleteonce i ran it through the command prompt, it worked like a dream, cheers!!!
ReplyDeleteThanks a lot for posting this, the second solution worked for me on Vista 64 bit Home Edition.
ReplyDeleteps: when you run this, go grab some coffee or something.. I quit waiting after 400k files
I love you all so much..thank you!!!
ReplyDeleteI tried everything before this..and wasted times..until i found this solution.
I did what the 4th comment said to do and it worked, but it took a long time and it was modifying like 500,000 registry's. Is that gonna be a problem? Not sure i understand registry.
ReplyDeletethe second solution works beautifully on Vista Ultimate. Just got to let the thing run for a while, amdist a few failed entries too. But it works in the end. I tried it Visual C# Express edition, which had the same problem.
ReplyDelete2nd fix worked like a charm.
ReplyDeleteThanks !
OMGSH...I can't believe it, after months of searching the right key words, I stumbled across the greatest find in all the history of the world, YOU HEHE. Not A super MS fan, and I do use VS 08 much in web development and wanted to use for desktop applications and other projects, bought it, cost $$$ and couldn't even use it fully...until now. Those peski Regitry errors are gone. THANK YOU, YOU HAVE HELPED ME SO MUCH. IT WORKED LIKE A CHARM!! : D
ReplyDeleteI would like to give you a gift. My band Grind House(tm) just released our 2nd album. It may not be your style, but hey it's FREE.
http://grindhouse-music.com/GHzx007AR09/z007xgrind_do_20_AR09.html
user: gift
pass: Fn-XyEKWuxZ{
(copy and paste user log-in:}
It goes totally FREE in December worldwide, share with your co-workers, friends and family...
Thank you again. You are a GOD!!!!!!!LOLOL, Take care
Penny Lane
I taste all solutions but nothing
ReplyDeletewas working.
This is my solution
for German Vista
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=Administratoren=f
it needs a bit time because it is changeing all registry ^^
but it works
Many thanks from Brazil.
ReplyDeleteHi,
ReplyDeleteThe fix provided by you works perfect.
I am trying do execute the subniacl exe and the commonds thru C# code.My problem with this is that the exe takes a hell of time to execute if its thru C# code.
What can be the reason?is there a solution for this.
Hey people!
ReplyDeleteI'm running windows 7 ultimate (x64) with a 2.4Ghz core 2 duo and 6 gb of ram everything on an HP HDX 1160US (laptop).
I got the same problem of "there is not enough free memory to run this program" plus my sound doesn't work and my laptop says there is no internet connectivity but when I open the explorer the internet is working fine.
My hypothesis began when I installed visual studio 2010 with framework 4.0 beta. I reckon that was the root of the problem as one day it suddenly stopped working and therefore I decided to uninstall it. I forgot about this until I wanted to install the beta of office 2010 and I couldn't install it until I figure out framework 4.0 was still there on my computer... so I uninstall it and everything fine again.
However, some days ago I had to work with visual studio 2008 team edition, I installed it and I had it running BUUUT when I wanted to create a new project... ERROR: "Requested Registry access is not allowed"
I did everything it was said but it didn't solve my problem but when I reboot I was in this situation.
I can't format my disk and do a clean installation as I have several programs and configurations that would take a decade to reinstall again! :(
I can't restore or update the OS cuz I forgot to create a restore point and when I want ti upgrade it says it doesn't recognize the disk or something like that (is just because of the problems I mentioned above).
CODE USED:
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=system=f
Please I'm so tired of this and I need a solution ASAP... I would be greatly appreciated!
Hey people!
ReplyDeleteI'm running windows 7 ultimate (x64) with a 2.4Ghz core 2 duo and 6 gb of ram everything on an HP HDX 1160US (laptop).
I got the same problem of "there is not enough free memory to run this program" plus my sound doesn't work and my laptop says there is no internet connectivity but when I open the explorer the internet is working fine.
My hypothesis began when I installed visual studio 2010 with framework 4.0 beta. I reckon that was the root of the problem as one day it suddenly stopped working and therefore I decided to uninstall it. I forgot about this until I wanted to install the beta of office 2010 and I couldn't install it until I figure out framework 4.0 was still there on my computer... so I uninstall it and everything fine again.
However, some days ago I had to work with visual studio 2008 team edition, I installed it and I had it running BUUUT when I wanted to create a new project... ERROR: "Requested Registry access is not allowed"
I did everything it was said but it didn't solve my problem but when I reboot I was in this situation.
I can't format my disk and do a clean installation as I have several programs and configurations that would take a decade to reinstall again! :(
I can't restore or update the OS cuz I forgot to create a restore point and when I want ti upgrade it says it doesn't recognize the disk or something like that (is just because of the problems I mentioned above).
CODE USED:
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VCSExpress.csproj.9.0 /grant=system=f
Please I'm so tired of this and I need a solution ASAP... I would be greatly appreciated!
Dude, but this is fix is not working with Windows 7...can u help plz
ReplyDeleteYou are awesome bro. simply awesome .....you had me at batch.....lol
ReplyDeleteThis works. The FIX worked for me on Vista. Let it run and VS will not have the issues anymore. I can't say how much I am thankful for finding this fix. THANKS, THANKS, THANKS!!!
ReplyDeleteFor anyone who doesnt want F-Up their registry with something they dont understand go here, twas my savior after having to do a system restore:
ReplyDeleteVista SP1 for VB2009 Ver9.0.3 er something
Cheers,
(Actual I got this link from MS)
http://www.texttoolkit.com/index.php?option=com_content&view=article&id=74:visual-studio-requested-registry-access-is-not-allowed&catid=35:technology&Itemid=55
works great,thanks alot
ReplyDeleteI couldn't do a system restore, and I'm going to reinstall windows 7... This sux, next time warn people of the shit that may come out of these so called 'fixes' (warn not in the comment section)
ReplyDeleteStill not work, and in the batch says there was "The System Cannont find the file specified" and everything and also vb cant make a new project. Can everyone solve/fix this? please
ReplyDeleteIf your OS is in other language than english, maybe the administrators group not exist, change to f.e. Administradores
ReplyDeleteThe second option is excellent.Its really worked for me.
ReplyDeletehow do i do it on windows 7 vb express 2010? (64bit)
ReplyDeleteFolks are either giving incomplete workarounds (only changing permissions on a couple of reg keys), or scary workarounds that go WAY too far (applying permissions to ALL reg keys). This script finds the happy balance and should work for VS2008 and VS2010. (Note that this requires you have downloaded and installed SubInACL into the default install directory)
ReplyDeleteCopy the below code into a file called vsfix.cmd, replacing username with your Windows account username.
REM ---- CODE BEGINS ----
IF DEFINED PROGRAMFILES(x86) SET PROGRAMFILES(x64)=%PROGRAMFILES%
IF NOT DEFINED PROGRAMFILES(x86) SET PROGRAMFILES(x86)=%PROGRAMFILES%
"%PROGRAMFILES(x86)%\Windows Resource Kits\Tools\subinacl.exe" /keyreg HKEY_CLASSES_ROOT\VisualStudio* /setowner=username
"%PROGRAMFILES(x86)%\Windows Resource Kits\Tools\subinacl.exe" /keyreg HKEY_CLASSES_ROOT\VisualStudio* /grant=Administrators=F
REM ---- CODE ENDS ----
Did you find username in the code above!?!?! Make sure to replace it!
Make sure Visual Studio is closed.
Right click on the file and choose "Run as Administrator".
Start up Visual Studio and create your project.
Note: This assumes your Windows account is an Administrator. If not, replace Administrators=F with Everyone=R.
In my win7 dont work and im administrator..i give all autorizzation...how i can do?
ReplyDelete