Applies to: VisualSVN 6.0 and later.
You may see the following error message when starting Visual Studio 2017 and 2019:
Output window contains the following error:
Log file referenced in the error message contains an exception similar to:
The common cause of this error is changing the path to the Windows local Application Data folder (represented by the %LOCALAPPDATA% environment variable). For example, if you rename your Windows user profile.
Make sure that your Visual Studio instance is up to date and update it if possible because this problem can be fixed in the most recent version of Visual Studio. Read Microsoft Docs | Update Visual Studio for more information and instructions.
If you already have up to date version of Visual Studio, you can repair your Visual Studio instance via the Visual Studio Installer in order to resolve the issue. Read Microsoft Docs | Repair Visual Studio for more information.
Follow these steps to repair Visual Studio:
- Start Visual Studio Installer.
- Click the Details icon in front of your Visual Studio 2017/2019 installation, and then click Repair.
Wait for the repair to complete and start Visual Studio. The error should not occur anymore, and VisualSVN will initialize without issues.