Microsoft visual studio

zainabHL 0 Reputation points
2024-04-24T10:49:46.8033333+00:00

Hello, I apologize right off the bat for my poor level of computer understanding. Here is my issue: i installed Microsoft visual studio 2022, 3 days ago. I started using it (created a project for developing a desktop application), all is good, after like 5hours i wanted to run it to continue but i get the following error message:

Unknown Error.

You may get more informations by examining the file: C: Users/Hp .../ AppData/Roaming/Microsoft/visual studio/17.0..../ activity Log.xml

I uninstalled it, reinstalled it, it worked all good again. But the after day it showed me the same error message.

If anyone came across this problem i hope you'll share with how you fixed it.

NB: i searched for the AppData folder, found it ( it was among the hidden files), then i opened the activityLog file,

i found 2 issues:

1- Failed to initialize Registry Root Hive.

2- Failure calling InitializeAppID.

and a warning saying: Unable to initialize cache

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,628 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
971 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,801 Reputation points Microsoft Vendor
    2024-04-25T07:57:34.7666667+00:00

    Hi @zainabHL

    Welcome to Microsoft Q&A! 

    Do you have any anti-virus software or security management software? If so, please temporarily disable them. 

    Please try to launch your Visual Studio 2022 in Safe Mode (run devenv /SafeMode in Developer Command Prompt for VS 2022). 

    You can also start your PC in Safe Mode and run your Visual Studio again to see if any software is blocking VS. 

    If it doesn’t work, please manually delete the privateregistry.bin file (%LocalAppData%\Microsoft\VisualStudio\17.0_xxxx\privateregistry.bin).

    Then, re-launch your VS2022. 

    You can refer to the similar issue and try the following steps to load the privateregistry.bin file into regedit.exe:

    1. Close VS2022 and launch regedit.exe.
    2. Select the HKEY_LOCAL_MACHINE node in the left-hand pane.
    3. Select the File > Load Hive... menu item, and browse to the user Appdata folder to load the privateregistry.bin file (%LocalAppData%\Microsoft\VisualStudio\17.0_xxxx\privateregistry.bin).
    4. Give it a key name like "VS2022"
    5. It will load data into HKLM node and please check the keys.
    6. Then, select the "VS2022" and select File > Unload Hive... > close regedit.exe.

     

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.