Successfully added
Visual Studio 2022
by Patrik
The operation could not be complete value does not fall within the expected range
Visual Studio 2022 Issue
I got the following error when I tried to open a web solution in Visual Studio 2022:
"The operation could not be complete value does not fall within the expected range"
Solution
Just solved it. I deleted the .suo files found in the solution main directory and that seems to have fixed it. I would have thought that doing the reset all did this but apparently not but seems like it became corrupted somehow.
Other Solution Suggestion
- Exit Visual Studio
- Click Start
- Type cmd, right-click Command Prompt, and select Run as administrator
- Navigate to the appropriate Visual Studio folder
VS2012:pushd %programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE
VS2015:pushd %programfiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE
VS2017:pushd %programfiles(x86)%\Microsoft Visual Studio\2017\<Edition>\Common7\IDE
VS2019:pushd %programfiles(x86)%\Microsoft Visual Studio\2019\<Edition>\Common7\IDE
- Type
devenv /setup
and press enter - When the command prompt returns, you're done. Close the command window, reopen Visual Studio, and test to see if the error's resolved.
See more information at Setup (devenv.exe) - Visual Studio 2015 | Microsoft Docs
Referenced in:
Comments