Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Unity can't open VS2019

Discussion in 'Editor & General Support' started by Spock445, May 27, 2020.

  1. Spock445

    Spock445

    Joined:
    May 27, 2020
    Posts:
    3
    Not sure if i can post Unity with Visual Studio problems here but the Microsoft feedback/forums don't respond so i'm doing it here..

    My Visual Studio 2019 needs to be ran as administrator in order to work for some reason, therefore Unity can't launch it (for example when i click open a script) and therefore i can't work on projects. Whenever i try to open it without administrator it says "Unknown Error" and a file path to the visual studio activity log. After looking at the activity log i saw "Failed to initialize Registry Root Hive" and "ACCESS DENIED". That's how i knew to launch it with admin but again, i can't use it with unity.

    And yes, i have tried re-installing.
    Is this happening to anyone else or does anyone have a solution? Help would be very much appreciated.
     
  2. Hiddenworlds225

    Hiddenworlds225

    Joined:
    Apr 18, 2017
    Posts:
    32
    That seems to be an issue with VisualStudio. I'm still running on 2017 with no errors. See if you can find that and if that fixes it.
     
  3. Spock445

    Spock445

    Joined:
    May 27, 2020
    Posts:
    3
    I uninstalled VS2019 and got 2017 and i'm getting the same error... Am i doing something wrong?
     
  4. Spock445

    Spock445

    Joined:
    May 27, 2020
    Posts:
    3
    I think it's because since the user i use and always used is an Administrator, visual studio doesn't have access to the "Registry Root Hive" unless it is run as Admin. I have no idea why VS needs the registry thing but it's very frustrating. Is there a way to give visual studio and unity Administrative permissions or something? (launching unity with admin doesn't solve the issue)
     
  5. Hiddenworlds225

    Hiddenworlds225

    Joined:
    Apr 18, 2017
    Posts:
    32
    I wouldn't know. This is a first for me.