Arrays call stack error

Alexander Davis 0 Reputation points
2026-10-27T21:49:39.29+00:00
--------
--------
1. Hide Call Stack
-------- -------- --------
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
1. Hide Call Stack
-------- -------- --------
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
1. Hide Call Stack
-------- -------- --------
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
--------
1. Hide Call Stack
-------- -------- --------
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
1. Hide Call Stack
-------- -------- --------
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
1. Hide Call Stack
at System.Linq.Enumerable.SingleTSource at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.WriterBase.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.<>c__DisplayClass14_0.<g__ProcessTypeDeclarationAsync 0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.RoslynCodeDomService.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.Roslyn.VisualBasic.VisualBasicCodeDomService.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.DesignTools.Client.CodeDom.CodeDomSource.d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Write() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.PerformFlush(IDesignerSerializationManager manager) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.ReportFlushErrors(ICollection errors) at Microsoft.DotNet.DesignTools.Client.Loader.BasicDesignerLoader.Flush() at Microsoft.DotNet.DesignTools.Client.Loader.VsDesignerLoader.Flush() at System.ComponentModel.Design.DesignSurface.Flush() at Microsoft.VisualStudio.Shell.Design.DesignerWindowPane.OnFlush() at Microsoft.VisualStudio.WinForms.WindowPanes.WinFormsWindowPane.OnFlush()
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.


1 answer

Sort by: Most helpful
  1. AI answer

    2026-10-27T21:50:30.9366667+00:00

    Back up the project, then correct duplicate or mismatched control definitions in the affected form’s .Designer.vb file; this RoslynCodeDomService/Enumerable.Single stack trace is a WinForms Designer code-generation failure, not an array call-stack overflow.

    Correct the designer file

    This problem commonly appears after copying, renaming, or grouping controls into an array, when the generated designer code contains duplicate fields or inconsistent names.^1^

    1. Commit or copy the project before editing generated code.
    2. Close the affected form’s Designer tab.
    3. In Solution Explorer, select Show All Files if necessary.
    4. Expand the form and open FormName.Designer.vb.
    5. Search for each recently copied or renamed control. Every control should have:
      • One field declaration.
      • One construction statement in InitializeComponent.
      • Consistent references in property assignments, event hookups, and container/array initialization.
      • A unique Name value.

    For example, remove or correct inconsistencies such as:

    Friend WithEvents Button1 As Button
    Friend WithEvents Button1 As Button   ' Duplicate: remove or rename
    
    Private Sub InitializeComponent()
        Me.Button2 = New Button()
        Me.Button1.Name = "Button2"        ' Mismatched reference/name
    End Sub
    

    Also verify that FormName.vb and FormName.Designer.vb declare the same partial-class name. Avoid changing unrelated generated code. The accepted resolution for the matching copy-and-rename failure is to correct stale names in declarations, initialization, property assignments, and Controls.Add statements.^2^

    1. Save the file.
    2. Select Build > Clean Solution, then Build > Rebuild Solution.
    3. Fix every compile error before reopening the form. The designer can fail because of errors in project code, generated code, or third-party components.^3^

    If the definitions appear consistent

    Clear generated state:

    1. Close Visual Studio completely.
    2. Delete the affected project’s bin and obj directories.
    3. Optionally delete or rename the solution’s hidden .vs directory.
    4. Reopen Visual Studio and rebuild the solution.
    5. Open the form Designer again.

    Deleting bin and obj is an official recovery step for stale designer/build artifacts.^3^

    If it still fails

    • Only one form fails: compare its .vb and .Designer.vb files with a newly created working form, especially the class name, Partial Class, inheritance, and InitializeComponent.
    • Many forms started failing together: update Visual Studio first; if the current update remains affected, run Visual Studio Installer > More > Repair.
    • The project builds and no duplicate or mismatched definitions exist: report the reproducible designer failure through Help > Send Feedback > Report a Problem. Include the Visual Studio version, affected form files, stack trace, and a recording of the copy/rename operation if applicable.^4^

    References

    1. WinForms Designer Crashes (Visual Studio 2026) - Developer Community
    2. Sequence contains no elements - Microsoft Q&A
    3. Design-time error troubleshooting - Windows Forms
    4. Report a problem with the Visual Studio product or installer
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.