E. A. Bagby
E. A. Bagby

Reputation: 930

Winforms Designer not working after upgrading from .NET Framework to .NET 8 with the migration assistant

I've upgraded a Winforms application from .NET Framework to .NET 8 using the migration assistant. The program runs fine in debug mode, with the forms working.

The problem is that when I go to the designer for the forms, it isn't working. I have the same error message for every form and, in fact, I've tried adding a new, blank form and still get the same error.

Error:

The type name:" properties" on the property:"Name" of type:"System.CodeDom.CodeNamespace" is not a valid language-independent type name. (Parameter 'e')

Call stack:

at StreamJsonRpc.JsonRpc.d__154`1.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.Host.ServerHost.d__16.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.DesignToolsClientLoader.d__29.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.DesignToolsClientLoader.<>c__DisplayClass25_1.<<-ctor>b__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.DotNet.DesignTools.Client.DesignToolsClientLoader.d__27.MoveNext()

I've read other posts where people are having migration issues related to the Winforms designer, but none seem to solve my issue. Any help is appreciated.

Visual Studio WinForm Designer not working after .Net Framework migration to .Net Core

https://www.bing.com/videos/riverview/relatedvideo?pglt=41&q=how+to+view+windorms+editor+in+.net+8&cvid=878ff0d0f7d74528a285de780a797b87&gs_lcrp=EgRlZGdlKgYIABBFGDkyBggAEEUYOTIICAEQ6QcY_FXSAQkxODA3MmowajGoAgCwAgE&PC=U531&ru=%2fsearch%3fpglt%3d41%26q%3dhow%2bto%2bview%2bwindorms%2beditor%2bin%2b.net%2b8%26cvid%3d878ff0d0f7d74528a285de780a797b87%26gs_lcrp%3dEgRlZGdlKgYIABBFGDkyBggAEEUYOTIICAEQ6QcY_FXSAQkxODA3MmowajGoAgCwAgE%26FORM%3dANNAB1%26PC%3dU531&mmscn=vwrc&mid=67AF3F28A5057B2CF14C67AF3F28A5057B2CF14C&FORM=WRVORC&ntb=1&msockid=019144c7f3bd11ef9975c787dae2711d

Upvotes: 0

Views: 85

Answers (0)

Related Questions