79743182

Date: 2025-08-22 09:01:27
Score: 2
Natty:
Report link

I know a lot of time has passed since this problem was discussed, however, I got the same error with WPF today. It turned out that when I set DialogResult twice, I got this error on the second setting. DialogResult did not behave like a storage location that one sets values to multiple time. The error message that results is very misleading. A similar situation was discussed in this chain of answers, however, in my case I was setting DialogResult to "true" both times, to the same value.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ara J.