question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors in "output : windows Form" when using winforms designer

See original GitHub issue

Environment

Visual Studio Community 2022 (64bit) version: 17.5.0

.NET version

.net 6.0

Did this work in a previous version of Visual Studio and/or previous .NET release?

No response

Issue description

image

Steps to reproduce

opening a Form in designer

Diagnostics

[10:09:53.053019] fail: [Geco2023]: System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceProcess.ServiceController, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Impossibile trovare il file specificato.
                        File name: 'System.ServiceProcess.ServiceController, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
                           at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
                           at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
                           at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
                           at Microsoft.DotNet.DesignTools.Server.DesignToolsServer.LoadReferencedAssemblies(AssemblyName[] referencedAssemblyNames, HashSet`1 serverDependenciesNames, CancellationToken cancellationToken)

                        Per informazioni su come risolvere i problemi della finestra di progettazione, vedere la guida all'indirizzo https://aka.ms/winforms/designer/troubleshooting.
[10:09:53.054018] fail: [Geco2023]: System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel.Syndication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Impossibile trovare il file specificato.
                        File name: 'System.ServiceModel.Syndication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
                           at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
                           at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
                           at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
                           at Microsoft.DotNet.DesignTools.Server.DesignToolsServer.LoadReferencedAssemblies(AssemblyName[] referencedAssemblyNames, HashSet`1 serverDependenciesNames, CancellationToken cancellationToken)

                        Per informazioni su come risolvere i problemi della finestra di progettazione, vedere la guida all'indirizzo https://aka.ms/winforms/designer/troubleshooting.
[10:09:53.080018] fail: [Geco2023]: System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Impossibile trovare il file specificato.
                        File name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
                           at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
                           at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
                           at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
                           at Microsoft.DotNet.DesignTools.Server.DesignToolsServer.LoadReferencedAssemblies(AssemblyName[] referencedAssemblyNames, HashSet`1 serverDependenciesNames, CancellationToken cancellationToken)

                        Per informazioni su come risolvere i problemi della finestra di progettazione, vedere la guida all'indirizzo https://aka.ms/winforms/designer/troubleshooting.
[10:09:53.086017] fail: [Geco2023]: System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.OleDb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Impossibile trovare il file specificato.
                        File name: 'System.Data.OleDb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
                           at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
                           at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
                           at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
                           at Microsoft.DotNet.DesignTools.Server.DesignToolsServer.LoadReferencedAssemblies(AssemblyName[] referencedAssemblyNames, HashSet`1 serverDependenciesNames, CancellationToken cancellationToken)

                        Per informazioni su come risolvere i problemi della finestra di progettazione, vedere la guida all'indirizzo https://aka.ms/winforms/designer/troubleshooting.
[10:09:53.086017] fail: [Geco2023]: System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.Odbc, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Impossibile trovare il file specificato.
                        File name: 'System.Data.Odbc, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
                           at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
                           at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
                           at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
                           at Microsoft.DotNet.DesignTools.Server.DesignToolsServer.LoadReferencedAssemblies(AssemblyName[] referencedAssemblyNames, HashSet`1 serverDependenciesNames, CancellationToken cancellationToken)

                        Per informazioni su come risolvere i problemi della finestra di progettazione, vedere la guida all'indirizzo https://aka.ms/winforms/designer/troubleshooting.
[10:09:53.133017] fail: [Geco2023]: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AnalysisServices.AdomdClient, Version=19.16.3.4, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. Impossibile trovare il file specificato.
                        File name: 'Microsoft.AnalysisServices.AdomdClient, Version=19.16.3.4, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
                           at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
                           at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
                           at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
                           at Microsoft.DotNet.DesignTools.Server.DesignToolsServer.LoadReferencedAssemblies(AssemblyName[] referencedAssemblyNames, HashSet`1 serverDependenciesNames, CancellationToken cancellationToken)

                        Per informazioni su come risolvere i problemi della finestra di progettazione, vedere la guida all'indirizzo https://aka.ms/winforms/designer/troubleshooting.

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Shyam-Guptacommented, Feb 27, 2023

@AlessandroMenchiniTmaxLab During launch, designer spawns DesignToolsServer process which loads the .NET dlls referenced by the project, to find available Types. If a dll is not available, we log the error. But this should not affect designer functionality unless those Types are used in the code.

0reactions
RussKiecommented, Mar 1, 2023

During launch, designer spawns DesignToolsServer process which loads the .NET dlls referenced by the project, to find available Types. If a dll is not available, we log the error. But this should not affect designer functionality unless those Types are used in the code.

fail should denote only critical issues, which prevent the designer from functioning. If this isn’t a critical issue, then perhaps the log level should be dialled down to a warning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Design-time errors - Windows Forms .NET
This error occurs when Visual Studio cannot find a base class that satisfies designer requirements. Forms and controls must derive from a base ......
Read more >
Visual Studio 2022 Designer Errors with .NET Core ...
I have noticed that as I am designing .NET Core Windows applications in Visual Studio 2022, it frequently yet randomly shows the error...
Read more >
Design-Time Errors in the Windows Forms Designer(.NET ...
1 Answer. Case #1: You referenced another component in your own project. You need to compile before opening the designer (the designer uses...
Read more >
Visual Studio 2022 Designer Errors with .NET Core ...
I have noticed that as I am designing .NET Core Windows applications in Visual Studio 2022, it frequently yet randomly shows the error...
Read more >
(Loading Designer...) Form Designer Fails to Display #6492
Launch Visual Studio and open tab: Tools -> Options -> Windows Forms Designer -> General · Set . · Press Ok to save...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found