Bridge-To-Kubernetes
Bridge-To-Kubernetes copied to clipboard
Error when bridging from Visual Studio 2022 17.8.2
Describe the bug
After updating Visual Studio to 17.8.2 bridge to kubernetes has stopped working for me with "Unable to start program" error
Tried enabling the suggested option but no luck - I have resolved it by going back to a previous Visual Studio version (17.7.7)
Mention the platform you are using Visual Studio 2022 17.8.2
To Reproduce Steps to reproduce the behavior:
- Update VS 2022 to latest version
- Try bridge to kubernetes
Hi @baltimor26, I updated the Visual Studio to 17.8.3 and was able to connect without any errors. Can you please check once again and let me know.
A collegue has just updated to Visual Studio 17.8.3 and started to have the same problem.
@baltimor26 can you please share your local logs to analyze the error further. Thanks for your patience.
@baltimor26 Follow below instructions to enable debugging for VS extension to log errors
-
Open Developer Powershell for VS terminal, and run below to set visual studio logging: $env:MS_VS_AZUREDEVSPACES_TOOLS_LOGGING_ENABLED="True"
-
Then run below to start VS studio from that windows with the environment variable set: devenv.exe
Then you can find the logs under %temp% folder. VS extension logs - C:\Users<user>\AppData\Local\Temp\Microsoft.VisualStudio.Kubernetes.Debugging CLI logs - C:\Users<user>\AppData\Local\Temp\Bridge to Kuberenetes
Please share both the logs to analyze the error.
Theres not any errors in the logs as far as I can see but getting the same issue
Bridge to Kuberenetes:
2024-01-11T14:27:50.5045773Z | Library | TRACE | Pulling kubeconfig...\nOperation context: <json>{"clientRequestId":null,"correlationId":"cd1953dc-a7d6-478c-97d4-78096d8b12c3:edfa825d87c0:1d4b957a7270","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-11T14:27:50.4780771+00:00","userAgent":"LPK/3.2.20231023.6-0120add6 VisualStudio/17.8.34330.188","requestHttpMethod":null,"requestUri":null,"version":"1.0.20231003.1","requestHeaders":{},"loggingProperties":{"ApplicationName":"Library","DeviceOperatingSystem":"Microsoft Windows 10.0.19045","Framework":".NET 7.0.11","MacAddressHash":"0a5ef359af6abfac7d887e2226a6ec07ad021db305a89fc70c9de4ce5b308373","ProcessId":24772,"TargetEnvironment":"Production"}}</json> 2024-01-11T14:27:50.6072599Z | Library | TRACE | Event: CloudProvider <json>{"properties":{"ClusterFQDNDomain":"AzurePublic"},"metrics":null}</json> 2024-01-11T14:27:50.8506346Z | Library | TRACE | Dependency: Kubernetes <json>{"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}}</json> 2024-01-11T14:27:50.8790091Z | Library | TRACE | Dependency: Kubernetes <json>{"target":"GetV1ServiceAsync","success":true,"duration":null,"properties":{}}</json> 2024-01-11T14:27:50.9059646Z | Library | TRACE | Dependency: Kubernetes <json>{"target":"ListPodsInNamespaceAsync","success":true,"duration":null,"properties":{}}</json> 2024-01-11T14:27:50.9115961Z | Library | TRACE | Event: KubernetesRemoteEnvironmentManager-GetPodsFromService <json>{"properties":{"Result":"Succeeded"},"metrics":{"DurationInMs":26}}</json>\nOperation context: <json>{"clientRequestId":null,"correlationId":"cd1953dc-a7d6-478c-97d4-78096d8b12c3:edfa825d87c0:35584747c52d","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-11T14:27:50.4780771+00:00","userAgent":"LPK/3.2.20231023.6-0120add6 VisualStudio/17.8.34330.188","requestHttpMethod":null,"requestUri":null,"version":"1.0.20231003.1","requestHeaders":{},"loggingProperties":{"ApplicationName":"Library","DeviceOperatingSystem":"Microsoft Windows 10.0.19045","Framework":".NET 7.0.11","MacAddressHash":"0a5ef359af6abfac7d887e2226a6ec07ad021db305a89fc70c9de4ce5b308373","ProcessId":24772,"TargetEnvironment":"Production","IsRoutingEnabled":false}}</json> 2024-01-11T14:27:50.9124098Z | Library | TRACE | Resolved 1 from service. 2024-01-11T14:27:50.9145981Z | Library | TRACE | Max number of containers in pod: 1, min number of containers in pod: 1 2024-01-11T14:27:50.9148892Z | Library | TRACE | Chose pod 'dev-me-service-api-54776b8b67-zmg9s' with 1 containers 2024-01-11T14:27:50.9160955Z | Library | TRACE | Pod dev-me-service-api-54776b8b67-zmg9s owned by service dev-me-service-svc contains 1 containers. 2024-01-11T14:27:50.9165317Z | Library | TRACE | Resolved source container dev-me-service-api 2024-01-11T14:27:50.9166961Z | Library | TRACE | Resolved 1 containers with exposed ports. 2024-01-11T14:27:50.9167484Z | Library | TRACE | Successfully got container from service and pod. 2024-01-11T14:27:50.9194700Z | Library | TRACE | Owning object type: ReplicaSet 2024-01-11T14:27:50.9692518Z | Library | TRACE | Dependency: Kubernetes <json>{"target":"GetV1ReplicaSetAsync","success":true,"duration":null,"properties":{}}</json> 2024-01-11T14:27:50.9948240Z | Library | TRACE | Dependency: Kubernetes <json>{"target":"GetV1DeploymentAsync","success":true,"duration":null,"properties":{}}</json> 2024-01-11T14:27:50.9950305Z | Library | TRACE | Resolved backing deployment: dev-me-service-api 2024-01-11T14:27:50.9992727Z | Library | TRACE | Invoking kubectl GetContainerEnvironment command: exec dev-me-service-api-54776b8b67-zmg9s -c dev-me-service-api -n dev-me -- env 2024-01-11T14:27:51.0000298Z | Library | TRACE | Using kubectl found at: 'c:\users\me\appdata\local\microsoft\visualstudio\17.0_3b010c25\extensions\h1cwyblf.5vn\ServiceHub\kubectl\win\kubectl.exe' 2024-01-11T14:27:52.9604597Z | Library | TRACE | Invoked kubectl GetContainerEnvironment command: 'exec dev-me-service-api-54776b8b67-zmg9s -c dev-me-service-api -n dev-me -- env' exited with 0 in 1957ms 2024-01-11T14:27:53.0135055Z | Library | TRACE | Dependency: Kubernetes <json>{"target":"ListServicesInNamespaceAsync","success":true,"duration":null,"properties":{}}</json> 2024-01-11T14:27:53.0182449Z | Library | TRACE | Event: WorkloadInformationProvider-GetReachableEndpoints <json>{"properties":{"Result":"Succeeded"},"metrics":{"DurationInMs":53}}</json>\nOperation context: <json>{"clientRequestId":null,"correlationId":"cd1953dc-a7d6-478c-97d4-78096d8b12c3:edfa825d87c0:35584747c52d","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-11T14:27:50.4780771+00:00","userAgent":"LPK/3.2.20231023.6-0120add6 VisualStudio/17.8.34330.188","requestHttpMethod":null,"requestUri":null,"version":"1.0.20231003.1","requestHeaders":{},"loggingProperties":{"ApplicationName":"Library","DeviceOperatingSystem":"Microsoft Windows 10.0.19045","Framework":".NET 7.0.11","MacAddressHash":"0a5ef359af6abfac7d887e2226a6ec07ad021db305a89fc70c9de4ce5b308373","ProcessId":24772,"TargetEnvironment":"Production","IsRoutingEnabled":false,"IsManagedIdentityEnabled":false}}</json> 2024-01-11T14:27:53.0601046Z | Library | TRACE | Waiting for process 46240 2024-01-11T14:27:53.0603901Z | Library | TRACE | Process has exited with exit code 0 2024-01-11T14:27:53.0685073Z | Library | TRACE | Connecting to EndpointManager\nOperation context: <json>{"clientRequestId":null,"correlationId":"cd1953dc-a7d6-478c-97d4-78096d8b12c3:edfa825d87c0:35584747c52d:f63de0409bb7","requestId":null,"userSubscriptionId":null,"startTime":"2024-01-11T14:27:50.4780771+00:00","userAgent":"LPK/3.2.20231023.6-0120add6 VisualStudio/17.8.34330.188","requestHttpMethod":null,"requestUri":null,"version":"1.0.20231003.1","requestHeaders":{},"loggingProperties":{"ApplicationName":"Library","DeviceOperatingSystem":"Microsoft Windows 10.0.19045","Framework":".NET 7.0.11","MacAddressHash":"0a5ef359af6abfac7d887e2226a6ec07ad021db305a89fc70c9de4ce5b308373","ProcessId":24772,"TargetEnvironment":"Production"}}</json> 2024-01-11T14:27:53.0701821Z | Library | TRACE | Received request segment: 'EndpointManager accepted connection<EOF>' of size 40 2024-01-11T14:27:53.0711992Z | Library | TRACE | Sending request: '{"apiName":"Ping","correlationId":"cd1953dc-a7d6-478c-97d4-78096d8b12c3:edfa825d87c0:35584747c52d:f63de0409bb7"}' 2024-01-11T14:27:53.0718991Z | Library | TRACE | 117 bytes were sent. 2024-01-11T14:27:53.0733234Z | Library | TRACE | Received request segment: '{"isSuccess":true,"errorMessage":null,"errorType":null}<EOF>' of size 60 2024-01-11T14:27:53.0738291Z | Library | TRACE | Received response: '{"isSuccess":true,"errorMessage":null,"errorType":null}' 2024-01-11T14:27:53.2538324Z | Library | TRACE | Event: ConnectManagementClient-GetElevationRequests <json>{"properties":{"Result":"Succeeded"},"metrics":{"DurationInMs":2610}}</json>
Microsoft.VisualStudio.Kubernetes.Debugging:
{ "timestamp": "2024-01-11 14-27-49.024", "message": "Query the debug targets for debug launch of Connect service", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync", "stage": "Start" } { "timestamp": "2024-01-11 14-27-49.032", "message": "Get the launch profile that is configured to run the service locally", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetInnerLaunchProfile", "stage": "Start" } { "timestamp": "2024-01-11 14-27-49.033", "message": "Get the launch profile that is configured to run the service locally", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetInnerLaunchProfile", "stage": "End", "elapsedTime": "00:00:00.0015607", "completionState": "Succeeded" } { "timestamp": "2024-01-11 14-27-49.036", "message": "Read the service ports from the target launch profile", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetBindingPortsForLaunchProfile", "stage": "Start" } { "timestamp": "2024-01-11 14-27-49.042", "message": "Read the service ports from the target launch profile", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetBindingPortsForLaunchProfile", "stage": "End", "elapsedTime": "00:00:00.0063924", "completionState": "Succeeded" } { "timestamp": "2024-01-11 14-27-49.043", "message": "Retrieve the launch targets provider for the specified launch profile", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetLaunchTargetsProvider", "stage": "Start" } { "timestamp": "2024-01-11 14-27-49.052", "message": "Retrieve the launch targets provider for the specified launch profile", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetLaunchTargetsProvider", "stage": "End", "elapsedTime": "00:00:00.0086642", "completionState": "Succeeded" } { "timestamp": "2024-01-11 14-27-49.054", "message": "Begin a connect session", "operationName": "ConnectionManagerService.ConnectAsync", "stage": "Start" } { "timestamp": "2024-01-11 14-28-00.086", "message": "Begin a connect session", "operationName": "ConnectionManagerService.ConnectAsync", "stage": "End", "elapsedTime": "00:00:11.0330255", "completionState": "Succeeded" } { "timestamp": "2024-01-11 14-28-00.105", "message": "Query the debug targets for debug launch of Connect service", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync", "stage": "End", "elapsedTime": "00:00:11.0815928", "completionState": "Succeeded" } { "timestamp": "2024-01-11 14-28-00.110", "message": "Before debug adapter launches for Connect service", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.OnBeforeLaunchAsync", "stage": "Start" } { "timestamp": "2024-01-11 14-28-00.113", "message": "Get the launch profile that is configured to run the service locally", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetInnerLaunchProfile", "stage": "Start" } { "timestamp": "2024-01-11 14-28-00.113", "message": "Get the launch profile that is configured to run the service locally", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetInnerLaunchProfile", "stage": "End", "elapsedTime": "00:00:00.0000100", "completionState": "Succeeded" } { "timestamp": "2024-01-11 14-28-00.113", "message": "Retrieve the launch targets provider for the specified launch profile", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetLaunchTargetsProvider", "stage": "Start" } { "timestamp": "2024-01-11 14-28-00.113", "message": "Retrieve the launch targets provider for the specified launch profile", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.GetLaunchTargetsProvider", "stage": "End", "elapsedTime": "00:00:00.0000135", "completionState": "Succeeded" } { "timestamp": "2024-01-11 14-28-00.113", "message": "Before debug adapter launches for Connect service", "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.OnBeforeLaunchAsync", "stage": "End", "elapsedTime": "00:00:00.0028112", "completionState": "Succeeded" }
@tiddlypip @baltimor26 we are not facing this issue at out end, we are able to connect to the Bridge to Kubernetes. It might be related to your Visual studio. Please get in touch with the Visual studio team.
I managed to get it working by using dsc connect --service
I've raised the issue here: https://developercommunity.visualstudio.com/t/Visual-studio-fails-to-start-debugging-a/10560338, it seems to be an issue on 17.8.4 too
Happened to me too after updating from 17.7.7 to 17.8.5. Enterprise edition
@hsubramanianaks Continuing the discussion from https://github.com/Azure/Bridge-To-Kubernetes/issues/352#issuecomment-1906340340
@stevendarby I am hoping the latest release will fix this issue #343. Fingers crossed. I tested them using VS 17.8.5 , it worked fine without any issues. are you running 17.8.5 same as mine ?
Yes, I'm on the same 17.8.5. And I can confirm that the extension update release today did not change things. From the Visual Studio Installer I have also tried 'Update settings' and 'Repair' but I still have the problem. It's strange others here have had issues with 17.8.x but you can't reproduce - I wonder what the differences are between our installs. Hopefully the issue raised with the VS team will go somewhere.
I also still have the same issue after updating on vs 17.8.5 and with the current extension. Using the vs code extension on the commandline: C:\Users\me\AppData\Roaming\Code\User\globalStorage\mindaro.mindaro\file-downloader-downloads\bridge\dsc.exe connect --service my-service --namespace mynamespace --use-kubernetes-service-environment-variables running the exe in the opened cmd window and attaching the process allows me to continue using b2k however its obviously not as nice as your extension it seems to show its an extension/vs issue although theres not any errors logged by the extension. To use the extension I have to run kubectl proxy on the commandline which allowed it to find the k8 processes in the vs dialog. Could the issue be related to the version of k8 etc?
local kubctl : 1.27.2 microk8s: 1.26.10 (on Azure - Azure AD with Azure RBAC) local k8: 2.2.1
can confirm after updating everyone where i work gets this same issue, theres over a hundred where i work who could be affected but i can only currently speak for ones who have upgraded versions so far of which at least 4 people have had this issue
@ace90210 @stevendarby @tiddlypip @baltimor26 Can any one of you connect with me over Kubernetes slack and show me the error window , may be seeing it I can see if there is difference between our and your installs, to narrow down this issue? does other things work in your installation of visual studio after upgrading to 17.8.5 ? Only workaround is to downgrade your visual studio.
Heres the more recent vs logs that does report an exception Hariharan:
{ "timestamp": "2024-01-24 16-35-22.702", "message": "Query the debug targets for debug launch of Connect service", "exception": { "ClassName": "System.Runtime.InteropServices.COMException", "Message": "Unable to start program 'C:\\EdgeTeam\\tribal.microservice.apigateway\\src\\Tribal.MicroServices.ApiGateway\\bin\\Debug\\net60\\Tribal.MicroServices.ApiGateway.exe'.\r\n\r\nUnable to start the Microsoft Visual Studio Debug Console. If this problem continues, repair the Visual Studio installation, or enable 'Tools->Options->Debugging->Automatically close the console when debugging stops'.", "Data": null, "InnerException": null, "HelpURL": null, "StackTraceString": " at Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync.LaunchDebugTargetsAsync(UInt32 debugTargetCount, VsDebugTargetInfo4[] debugTargetArray, IVsDebuggerLaunchCompletionCallback completionCallback)\r\n at Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsDebuggerWrapper.<LaunchDebugTargetsAsync>d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.SelfHostWebServer.<EnsureRunningAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.WebServerStateManager.<LaunchWebServerAsync>d__140.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.ProjectDebugTargetsProvider.<QueryDebugTargetsAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.LaunchProfiles.AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.<>c__DisplayClass20_0.<<QueryDebugTargetsForDebugLaunchAsync>b__1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.Services.Logging.PerfLoggerExtensions.<ExecuteOperationAsync>d__31.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nLaunchDebugTargetsAsync\nMicrosoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\nMicrosoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync\nVoid LaunchDebugTargetsAsync(UInt32, Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo4[], Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchCompletionCallback)",
"HResult": -1989083114,
"Source": "Microsoft Visual Studio Debugger",
"WatsonBuckets": null
},
"operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync",
"stage": "End",
"elapsedTime": "00:00:23.1349273",
"completionState": "Error"
}
{
"timestamp": "2024-01-24 16-38-54.441",
"message": "Query the debug targets for debug launch of Connect service",
"exception": {
"ClassName": "System.Runtime.InteropServices.COMException",
"Message": "Unable to start program 'C:\EdgeTeam\tribal.microservice.apigateway\src\Tribal.MicroServices.ApiGateway\bin\Debug\net60\Tribal.MicroServices.ApiGateway.exe'.\r\n\r\nUnable to start the Microsoft Visual Studio Debug Console. If this problem continues, repair the Visual Studio installation, or enable 'Tools->Options->Debugging->Automatically close the console when debugging stops'.",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync.LaunchDebugTargetsAsync(UInt32 debugTargetCount, VsDebugTargetInfo4[] debugTargetArray, IVsDebuggerLaunchCompletionCallback completionCallback)\r\n at Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsDebuggerWrapper.<LaunchDebugTargetsAsync>d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.SelfHostWebServer.<EnsureRunningAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.WebServerStateManager.<LaunchWebServerAsync>d__140.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.ProjectDebugTargetsProvider.<QueryDebugTargetsAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.LaunchProfiles.AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.<>c__DisplayClass20_0.<<QueryDebugTargetsForDebugLaunchAsync>b__1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.Services.Logging.PerfLoggerExtensions.<ExecuteOperationAsync>d__31.MoveNext()", "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": "8\nLaunchDebugTargetsAsync\nMicrosoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\nMicrosoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync\nVoid LaunchDebugTargetsAsync(UInt32, Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo4[], Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchCompletionCallback)", "HResult": -1989083114, "Source": "Microsoft Visual Studio Debugger", "WatsonBuckets": null }, "operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync", "stage": "End", "elapsedTime": "00:00:12.3868255", "completionState": "Error" } { "timestamp": "2024-01-24 16-44-38.480", "message": "Query the debug targets for debug launch of Connect service", "exception": { "ClassName": "System.Runtime.InteropServices.COMException", "Message": "Unable to start program 'C:\\EdgeTeam\\tribal.microservice.apigateway\\src\\Tribal.MicroServices.ApiGateway\\bin\\Debug\\net60\\Tribal.MicroServices.ApiGateway.exe'.\r\n\r\nUnable to start the Microsoft Visual Studio Debug Console. If this problem continues, repair the Visual Studio installation, or enable 'Tools->Options->Debugging->Automatically close the console when debugging stops'.", "Data": null, "InnerException": null, "HelpURL": null, "StackTraceString": " at Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync.LaunchDebugTargetsAsync(UInt32 debugTargetCount, VsDebugTargetInfo4[] debugTargetArray, IVsDebuggerLaunchCompletionCallback completionCallback)\r\n at Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsDebuggerWrapper.<LaunchDebugTargetsAsync>d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.SelfHostWebServer.<EnsureRunningAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.WebServerStateManager.<LaunchWebServerAsync>d__140.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.ProjectDebugTargetsProvider.<QueryDebugTargetsAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.LaunchProfiles.AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.<>c__DisplayClass20_0.<<QueryDebugTargetsForDebugLaunchAsync>b__1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.Services.Logging.PerfLoggerExtensions.<ExecuteOperationAsync>d__31.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nLaunchDebugTargetsAsync\nMicrosoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\nMicrosoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync\nVoid LaunchDebugTargetsAsync(UInt32, Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo4[], Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchCompletionCallback)",
"HResult": -1989083114,
"Source": "Microsoft Visual Studio Debugger",
"WatsonBuckets": null
},
"operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync",
"stage": "End",
"elapsedTime": "00:00:12.5196093",
"completionState": "Error"
}
`
[
{
"timestamp": "2024-01-24 16-35-22.702",
"message": "Query the debug targets for debug launch of Connect service",
"exception": {
"ClassName": "System.Runtime.InteropServices.COMException",
"Message": "Unable to start program 'C:\\EdgeTeam\\tribal.microservice.apigateway\\src\\Tribal.MicroServices.ApiGateway\\bin\\Debug\\net60\\Tribal.MicroServices.ApiGateway.exe'.\r\n\r\nUnable to start the Microsoft Visual Studio Debug Console. If this problem continues, repair the Visual Studio installation, or enable 'Tools->Options->Debugging->Automatically close the console when debugging stops'.",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync.LaunchDebugTargetsAsync(UInt32 debugTargetCount, VsDebugTargetInfo4[] debugTargetArray, IVsDebuggerLaunchCompletionCallback completionCallback)\r\n at Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsDebuggerWrapper.<LaunchDebugTargetsAsync>d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.SelfHostWebServer.<EnsureRunningAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.WebServerStateManager.<LaunchWebServerAsync>d__140.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.ProjectDebugTargetsProvider.<QueryDebugTargetsAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.LaunchProfiles.AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.<>c__DisplayClass20_0.<<QueryDebugTargetsForDebugLaunchAsync>b__1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.Services.Logging.PerfLoggerExtensions.<ExecuteOperationAsync>d__31.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nLaunchDebugTargetsAsync\nMicrosoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\nMicrosoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync\nVoid LaunchDebugTargetsAsync(UInt32, Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo4[], Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchCompletionCallback)",
"HResult": -1989083114,
"Source": "Microsoft Visual Studio Debugger",
"WatsonBuckets": null
},
"operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync",
"stage": "End",
"elapsedTime": "00:00:23.1349273",
"completionState": "Error"
},
{
"timestamp": "2024-01-24 16-38-54.441",
"message": "Query the debug targets for debug launch of Connect service",
"exception": {
"ClassName": "System.Runtime.InteropServices.COMException",
"Message": "Unable to start program 'C:\EdgeTeam\tribal.microservice.apigateway\src\Tribal.MicroServices.ApiGateway\bin\Debug\net60\Tribal.MicroServices.ApiGateway.exe'.\r\n\r\nUnable to start the Microsoft Visual Studio Debug Console. If this problem continues, repair the Visual Studio installation, or enable 'Tools->Options->Debugging->Automatically close the console when debugging stops'.",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync.LaunchDebugTargetsAsync(UInt32 debugTargetCount, VsDebugTargetInfo4[] debugTargetArray, IVsDebuggerLaunchCompletionCallback completionCallback)\r\n at Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsDebuggerWrapper.d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.SelfHostWebServer.d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.WebServerStateManager.d__140.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.ProjectDebugTargetsProvider.d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.LaunchProfiles.AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.<>c__DisplayClass20_0.<b__1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.Services.Logging.PerfLoggerExtensions.d__31.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nLaunchDebugTargetsAsync\nMicrosoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\nMicrosoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync\nVoid LaunchDebugTargetsAsync(UInt32, Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo4[], Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchCompletionCallback)",
"HResult": -1989083114,
"Source": "Microsoft Visual Studio Debugger",
"WatsonBuckets": null
},
"operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync",
"stage": "End",
"elapsedTime": "00:00:12.3868255",
"completionState": "Error"
},
{
"timestamp": "2024-01-24 16-44-38.480",
"message": "Query the debug targets for debug launch of Connect service",
"exception": {
"ClassName": "System.Runtime.InteropServices.COMException",
"Message": "Unable to start program 'C:\\EdgeTeam\\tribal.microservice.apigateway\\src\\Tribal.MicroServices.ApiGateway\\bin\\Debug\\net60\\Tribal.MicroServices.ApiGateway.exe'.\r\n\r\nUnable to start the Microsoft Visual Studio Debug Console. If this problem continues, repair the Visual Studio installation, or enable 'Tools->Options->Debugging->Automatically close the console when debugging stops'.",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync.LaunchDebugTargetsAsync(UInt32 debugTargetCount, VsDebugTargetInfo4[] debugTargetArray, IVsDebuggerLaunchCompletionCallback completionCallback)\r\n at Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsDebuggerWrapper.<LaunchDebugTargetsAsync>d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.SelfHostWebServer.<EnsureRunningAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.WebServer.WebServerStateManager.<LaunchWebServerAsync>d__140.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.ProjectDebugTargetsProvider.<QueryDebugTargetsAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.WebTools.ProjectSystem.Debugger.BaseDebugTargetsProvider.<QueryDebugTargetsForDebugLaunchAsync>d__90.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.LaunchProfiles.AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.<>c__DisplayClass20_0.<<QueryDebugTargetsForDebugLaunchAsync>b__1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.VisualStudio.Kubernetes.Debugging.Core.Services.Logging.PerfLoggerExtensions.<ExecuteOperationAsync>d__31.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nLaunchDebugTargetsAsync\nMicrosoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\nMicrosoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchAsync\nVoid LaunchDebugTargetsAsync(UInt32, Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo4[], Microsoft.VisualStudio.Shell.Interop.IVsDebuggerLaunchCompletionCallback)",
"HResult": -1989083114,
"Source": "Microsoft Visual Studio Debugger",
"WatsonBuckets": null
},
"operationName": "AzureDevSpacesLocalDebugProfileLaunchTargetsProvider.QueryDebugTargetsForDebugLaunchAsync",
"stage": "End",
"elapsedTime": "00:00:12.5196093",
"completionState": "Error"
}
]
@stevendarby Can you uninstall and reinstall the Visual Studio and try again to fix this issue ? Please let me know.
@hsubramanianaks I had previously tried repair which didn't help, and just tried a fully uninstall and reinstall and this didn't help either.
@stevendarby Thanks for trying this. Visual Studio team is aware of this issue, and they will reach out to further analyze this.
