yes, update VS 2022 will fix Exception of type 'System.Exception' was thrown problem. I have update VS 2022 to 17.12.2 and problem didn't come back when I opened solution from local workspace.