Object reference not set to an instance of an object in visual studio designer
New DiscussionI have Visual Studio 2026 with Infragistics 26.1. When I stop debugging my application and open the Form Designer, I get the following error:
“Object reference not set to an instance of an object.”
I checked the Output window and found the following stack trace:
System.NullReferenceException: Object reference not set to an instance of an object.
at Infragistics.Win.Design.Designers.UltraPanelClientAreaProxyDesigner.OnSelectionChanged(Object sender, EventArgs e) in E:\BuildAgents\B\_work\33\s\dev-tools\WinForms\Main\Source\Misc\DesignTools.Client\Designers\Panel\UltraPanelClientAreaProxyDesigner.cs:line 66
at System.EventHandler.Invoke(Object sender, EventArgs e)
at Microsoft.VisualStudio.WinForms.DesignSurfaceService.DisconnectSession(Boolean forcibleDisconnection)
at Microsoft.VisualStudio.WinForms.VSDesignSurface.<RecreateDesignerSessionAsync>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.VisualStudio.WinForms.ProjectWatchers.ProjectWatcherService.ProjectWatcher.<>c__DisplayClass70_1.<<RestartServerProcessAndReloadDesignerIfRequired>g__RecreateDesignerSessionAndReloadDesignerAsync|1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.WinForms.ProjectWatchers.ProjectWatcherService.ProjectWatcher.<>c__DisplayClass70_1.<<RestartServerProcessAndReloadDesignerIfRequired>g__RecreateDesignerSessionAndReloadDesignerAsync|1>d.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.WinForms.ProjectWatchers.ProjectWatcherService.ProjectWatcher.<>c__DisplayClass70_0.<<RestartServerProcessAndReloadDesignerIfRequired>b__0>d.MoveNext()
This happens specifically when I stop the application and then open the Form Designer.
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
2 Created On
Aug 17, 2026 Last Post
1 week ago