I'm getting a combination of errors.
- Exception has been thrown by the target of an invocation
- I also get this error if coming from 'add new form' dialog.
[Error Code: 0x80131604][1] https://i.sstatic.net/VRCYU.png
I have tried the repair option as noted by the op, also tried starting VS as administrator and deleting the .vs folder - but none of these worked.
I tried a new project from scratch. VB winforms, targeting 7 and 8, both failed.
What is strange, is that it was working earlier today and for several days since the upgrade to VS 2022 17.9 preview 2.0.
my app is all 63bit, over 100 forms/controls - never had an issue.
but now i'm stuck - i'll try one more reboot
I found a work-around.
Before opening the form, find it's resource file .resx and open it.
Now the designer will open too!