Forum Discussion
simonsays_pt
Nov 04, 2020Brass Contributor
Windows Virtual Desktop Agent Upgrade Failed
Can't tell why, but the WVD Agent is updating and for some reason can't start up with new version and then rollback to the previous version. But doesn't get out of this loop and the service stops wor...
alhenriq_ms
Microsoft
Nov 04, 2020Hi simonsays_pt
Can you please look in the event logs on that VM (Under "Windows Logs" -> Application)
This looks like an exception caught by the RDAgentBootLoader - if your application log has too many entries - you can filter the current log and apply this XML filter
<QueryList>
<Query Id="0" Path="Application">
<Select Path="Application">*[System[Provider[@Name='RDAgentBootLoader']]]</Select>
</Query>
</QueryList>
We can start here to see what why the service is failing.
thanks,
-al
- simonsays_ptNov 04, 2020Brass Contributor
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- simonsays_ptNov 04, 2020Brass Contributor
I forgot to add a screenshot.
- alhenriq_msNov 04, 2020
Microsoft
Yes thanks for providing the error message - can you provide me with the version of the bootloader - please use this powershell command
Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Remote Desktop Agent Boot Loader"}
This is a rare occurrence where the service fails the load the updated WVD Agent - the agent version you have is 2195.x and I believe what's in production is 2548.x - the upgrade is failing.