Forum Discussion
Windows Virtual Desktop Agent Upgrade Failed
Hi 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
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.
- simonsays_ptNov 05, 2020Brass Contributor
alhenriq_msHere is the version of the bootloader as requested.
PS C:\Windows\system32> Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Remote Desktop Agent Boot Loader"
}
IdentifyingNumber : {A38EE409-424D-4A0D-B5B6-5D66F20F62A5}
Name : Remote Desktop Agent Boot Loader
Vendor : Microsoft Corporation
Version : 1.0.0.0
Caption : Remote Desktop Agent Boot LoaderWhen you say that the version 2548.x is in production, isn't supposed to be that version offered in the link by Microsoft? But, the download link points to the 2195.x!
Thank you