I come across the following error while working on the .NET C# project. When I try to open the project properties window I got the following error
An error occurred trying to load the page. Could not load file or assembly ‘Microsoft.VSDesigner, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
I was using the visual studio 2022 community edition. When I investigate the issue, it seems to happen in all VS versions.
The main cause is your VS installation is corrupt. In order to quickly fix this error, you need to
- Reinstall VS again.
- Repair your VS installation using Visual Studio Installer.
You can find VS Installer in the Start menu in Windows, search for “installer”, and then select Visual Studio Installer from the results.