Microsoft Developer Network > Página principal de foros > Visual Studio 2008 Express Editions - Installation and Setup > Can not create new project in Visual Basic 2008 Express Beta Edition- "Requested Registry Access is not allowed"

Bloqueada Can not create new project in Visual Basic 2008 Express Beta Edition- "Requested Registry Access is not allowed"

  • martes, 13 de noviembre de 2007 6:15
     
     
    I have just downloaded VB 2008 Express Beta Version and have successfully installed it on my machine. I tried to create new project. I did this..
    File> New Project> Windows Form Application> OK.
    I got the message "Requested Registry Access is not allowed".
    User account is with administrative privilages. I tried to do it by disabling the UAC, but couldn't help.
    Machine Details.. 
    OS: Microsoft Windows Vista Home Basic
    Processor: Intel T5300
    Any help will be highly appreciated.
    Thanks.

Respuestas

Todas las respuestas

  • martes, 13 de noviembre de 2007 14:24
     
     
    I have the same problem with the C# 2008 Express Beta on the 64 bit version of Vista Home Premium.
  • miércoles, 14 de noviembre de 2007 11:13
     
     Respondida

    This issue has been fed back to the connect website:

    https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=302366&wa=wsignin1.0 

     

    The issue is related to the permissions in the registry. Basically, Administrator doesn't have access to the key required by Visual Studio.

    Step 1: Download and install the SubInACL utility.
    http://go.microsoft.com/fwlink/?LinkId=23418.

    Step 2: Browse to C:/Program Files/Windows Resource Kits/Tools/ and create a file called vs2008fix.txt

    Step 3: Open the file you created, and inside copy-paste:

    Code Block

    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


    Step 4: Save the file and change the file extension to ".cmd". Then Start > Run. Type "cmd" (without the quotes) and type:

    cd C:/Program Files/Windows Resource Kits/Tools

    Step 5: Press Enter. Then type:

    vs2008fix.cmd

    Step 6: Wait until it completes, then start Visual Studio again. You should be able to create project/files of any type.

     

    Check these threads for reference.

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2237373&SiteID=1

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2226847&SiteID=1

     

    Regards,

    Martin

  • jueves, 15 de noviembre de 2007 21:53
     
     
    Any idea what changes the fix requires to work for Visual C# 2008 Express?
    Thanks.
  • lunes, 19 de noviembre de 2007 11:49
     
     

    This issue occurs in Visual Studio 2008 Beta2. I believe Visual Studio IDE Team will solve the issue in final version.

     

    Thanks,

    Martin

  • sábado, 24 de noviembre de 2007 12:42
     
     

    no this was not fixed in C# 2008 final

     

    trying the workaround now...

     

  • sábado, 24 de noviembre de 2007 15:18
     
     
    tried the workaround with vs2008 rtm and no luck. it would be nice to be able to see some more detailed exception output, as this message gives you no idea what keys are badly permissioned.
  • viernes, 10 de abril de 2009 16:00
     
     
    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

    Martin is right, this solves the problem. The only thing is probably this is not exactly your registry key. For example, just downloaded and installed Visual Basic Express Edition 2008 (Apr-2009) and this problem ("Requested Registry Access is not allowed") arised.
    The key for my installation is HKEY_CLASSES_ROOT\VBExpress.vbproj.9.0, so this is the command you should run:

    subinacl /subkeyreg HKEY_CLASSES_ROOT\VBExpress.vbproj.9.0 /grant=administrators=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VBExpress.vbproj.9.0  /grant=users=f
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VBExpress.vbproj.9.0  /grant=system=f

    If you are unsure about which key you have, search HKEY_CLASSES_ROOT for a "vbproj.9.0" key.

    The weird thing is, you cannot change the ownership (or rights) with the RegEditor, you have to use this tool (subinacl)...

    Regards


    B.Crab.
  • domingo, 12 de abril de 2009 8:09
     
     
    This Didn't work for me.
    In fact it's disabled my sound and internet status, internet works stuff like "Msn messenger " Doesn't work.
    I Recommend not trying it .
    I hope they'll find a different way.
    thanks for your time