WinForms : No more form editor in Visual Studio

Gloops 41 Reputation points
2023-05-03T08:51:19.9766667+00:00

Hello everybody,

This morning I started having a problem on two projects that work quite good for some time. One of them has a Git support up-to-date.

The most recent that I remember is that I authenticated on Git (for the other project), that needs authorising the application, which is classical for a few years, but then I remember seeing a message claiming about a confidentiality problem, unfortunately I do not find any log of that.

I uninstalled and reinstalled the desktop load for Visual Studio, and restarted the machine, this did not appear to help a lot.

The problem does not affect new projects.

The two sources I have for this problem are ActivityLog.xml, and the event viewer.

ActivityLog.xml showed four times an error, that Edge translates like this :

SetSite failed for package [IntelliCodeCppPackage]Source: 'StreamJsonRpc' Description: Cannot find service module info file 'vs-intellicode-models64.servicehub.service.json' in 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\ServiceHub\Services' (ErrorKind: ServiceModuleInfoNotFound) StreamJsonRpc.RemoteInvocationException: Cannot find service module info file 'vs-intellicode-models64.servicehub.service.json' in 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\ServiceHub\Services' (ErrorKind: ServiceModuleInfoNotFound) at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__145'1.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Client.HubClient.<>c__DisplayClass47_0.<<StartRemoteServiceBrokerServerForServiceAsync>b__2>d.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.ServiceHub.Client.HubClient.<>c__DisplayClass47_0.<<StartRemoteServiceBrokerServerForServiceAsync>b__2>d.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.<ExecuteAsync>d__0'1.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.<ExecuteAsync>d__0'1.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Client.HubClient.<StartRemoteServiceBrokerServerForServiceAsync>d__47.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Client.HubClient.<SetUpServiceActivationOptionsForServiceRequestAsync>d__65.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Client.HubClient.RemoteServiceBrokerWrapper.<RequestServiceChannelAsync>d__9.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Framework.RemoteServiceBroker.<GetPipeAsync>d__32.MoveNext() --- End of stack trace from the previous location where the exception was thrown--- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Client.HubClient.<GetPipeAsync>d__38.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Client.HubClient.<RequestServiceAsync>d__35.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.IntelliCode.Api.RemoteModelServiceClientFactory.<BuildAsync>d__2.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.IntelliCode.Cpp.CppIntelliCodeProvider.<InitializeAsync>d__6.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.IntelliCode.Cpp.IntelliCodeCppPackage.<InitializeIntelliCodeCppAsync>d__4.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.IntelliCode.Cpp.IntelliCodeCppPackage.<InitializeAsync>d__3.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) RPC server exception: Microsoft.ServiceHub.Utility.ServiceHubException: Cannot find service module info file 'vs-intellicode-models64.servicehub.service.json' in 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\ServiceHub\Services' (ErrorKind: ServiceModuleInfoNotFound) at Microsoft.ServiceHub.Controller.ServiceDiscoveryManager.<GetServiceModuleInfoAsync>d__8.MoveNext() --- End of stack trace from the previous location at which thexception was lifted --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Controller.LocationService.<GetServiceModuleInfoAsync>d__53.MoveNext() --- End of stack trace from the previous location where the exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ServiceHub.Controller.HubController.<FindServiceConfigurationAsync>d__10.MoveNext()

I am not sure whether you will receive the original version if I copy it here.

The event viewer tells something like this :

"The component that raised this event is not installed on the computer, or the installation is damaged. You can install or repair the component on the local computer.

The resource of this message is present, but the message cannot be found in the table of messages.

(devenv.exe, PID 11608, Thread 1) UIContextHelper.SetUIContext: The call to IVsAggregatableProject.GetCmdUIContextCookie failed. Error code: 1

"

Tonight I shall have a look on what can be found about that. Perhaps it becomes clearer after a step back.

Developer technologies | Windows Forms
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gloops 41 Reputation points
    2023-05-04T00:14:37.62+00:00

    In fact, the solution was not opened properly, a folder was opened instead.

    After closing Visual Studio, the solution has been a double click on the solution file.

    Some questions remain :

    • the signification of the messages found in ActivityLog.xml, and in the eventviewer
    • how an answer was possible, if the question did not appear under "Windows Forms" tag.
    0 comments No comments

Your answer

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