Forum Discussion
Windows Virtual Desktop Agent Upgrade Failed
alhenriq_msthanks in advance.
Here is the exception:
BootLoader exception:System.MissingMethodException: Method not found: 'Microsoft.Extensions.DependencyInjection.IHttpClientBuilder Microsoft.Extensions.DependencyInjection.HttpClientFactoryServiceCollectionExtensions.AddHttpClient(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.String, System.Action`1<System.Net.Http.HttpClient>)'.
at Microsoft.RDInfra.Diagnostics.Agent.DiagnosticsHelperMethods.AddRDAgentDiagnostics(IServiceCollection services, RDComponent currentComponent)
at Microsoft.RDInfra.RDAgent.Service.Startup.ConfigureServices(IServiceCollection services) in E:\agent\_work\2\s\src\RDAgent\src\Service\Startup.cs:line 99
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Microsoft.RDInfra.RDAgent.Service.RDAgentMain.CreateRDAgentWebHost(String workingDirectory) in E:\agent\_work\2\s\src\RDAgent\src\Service\RDAgentMain.cs:line 40
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
at RDAgentBootLoader.RDAgentBootLoader.<BootLoaderStartAsync>d__8.MoveNext() in C:\agent\_work\92\s\src\RDAgent\src\RDAgentBootLoader\RDAgentBootLoader.cs:line 53
I forgot to add a screenshot.