I am experiencing this error 0x80070057 while attempting to set next statement in Visual Studio 2022. It happened multiple times recently.
My project uses .NET 4.7.2. In this case, my current line as well as the line I am attempting to set next statement is:
using (var stream = new FileStream(fileInfo.Path, FileMode.Open, FileAccess.Read))
There are no code changes. I am also not able to set next statement to any other line in the function. Here is some more information:
- I start Visual Studio as admin
- ‘Just My Code’ is disabled since I step into library functions
- ‘Require source files to match exactly with the original version’ is disabled.
I understand that error 0x80070057 is a windows error (reference) but not sure how to fix. Also couldn’t find any references to this error in Visual Studio. Any suggestions will be appreciated.
