PlatformNotSupported exceptions in WindowsARM infrastructure for release/6.0

See original GitHub issue

These errors cause more issues down the road in Helix test runs for release/6.0 branch. For more details see: https://dev.azure.com/dnceng-public/public/_build/results?buildId=187657&view=ms.vss-test-web.build-test-results-tab&runId=3604263&resultId=120253&paneView=dotnet-dnceng.dnceng-anon-build-release-tasks.helix-anon-test-information-tab

2023-02-28T09:54:48.4281273Z  | System.PlatformNotSupportedException: EventLog access is not supported on this platform.
2023-02-28T09:54:48.4281453Z  |    at System.Diagnostics.EventLog..ctor(String logName, String machineName, String source)
2023-02-28T09:54:48.4281523Z  |    at Microsoft.Extensions.Logging.EventLog.WindowsEventLog..ctor(String logName, String machineName, String sourceName)
2023-02-28T09:54:48.4281704Z  |    at Microsoft.Extensions.Logging.EventLog.EventLogSettings.CreateDefaultEventLog()
2023-02-28T09:54:48.4281771Z  |    at Microsoft.Extensions.Logging.EventLog.EventLogSettings.get_EventLog()
2023-02-28T09:54:48.4281815Z  |    at Microsoft.Extensions.Logging.EventLog.EventLogLogger..ctor(String name, EventLogSettings settings, IExternalScopeProvider externalScopeProvider)
2023-02-28T09:54:48.4282067Z  |    at Microsoft.Extensions.Logging.EventLog.EventLogLoggerProvider.CreateLogger(String name)
2023-02-28T09:54:48.4282137Z  |    at Microsoft.Extensions.Logging.LoggerFactory.CreateLoggers(String categoryName)
2023-02-28T09:54:48.4282184Z  |    at Microsoft.Extensions.Logging.LoggerFactory.CreateLogger(String categoryName)
2023-02-28T09:54:48.4282368Z  |    at Microsoft.Extensions.Logging.Logger`1..ctor(ILoggerFactory factory)
2023-02-28T09:54:48.4282438Z  |    at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
2023-02-28T09:54:48.4282626Z  |    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2023-02-28T09:54:48.4282844Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2023-02-28T09:54:48.4283723Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2023-02-28T09:54:48.4283984Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
2023-02-28T09:54:48.4284075Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2023-02-28T09:54:48.4284273Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2023-02-28T09:54:48.4284591Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2023-02-28T09:54:48.4284665Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
2023-02-28T09:54:48.4284862Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2023-02-28T09:54:48.4284933Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
2023-02-28T09:54:48.4285122Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
2023-02-28T09:54:48.4285202Z  |    at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
2023-02-28T09:54:48.4285384Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2023-02-28T09:54:48.4285453Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
2023-02-28T09:54:48.4285634Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
2023-02-28T09:54:48.4285702Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
2023-02-28T09:54:48.4286004Z  |    at Microsoft.Extensions.Hosting.HostBuilder.<CreateServiceProvider>b__28_2(IServiceProvider _)
2023-02-28T09:54:48.4286073Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
2023-02-28T09:54:48.4286257Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2023-02-28T09:54:48.4286475Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
2023-02-28T09:54:48.4286546Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2023-02-28T09:54:48.4286738Z  |    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
2023-02-28T09:54:48.4286810Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
2023-02-28T09:54:48.4286997Z  |    at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
2023-02-28T09:54:48.4287066Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2023-02-28T09:54:48.4287350Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
2023-02-28T09:54:48.4287459Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
2023-02-28T09:54:48.4287655Z  |    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
2023-02-28T09:54:48.4287725Z  |    at Microsoft.Extensions.Hosting.HostBuilder.Build()
2023-02-28T09:54:48.4287770Z  |    at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
2023-02-28T09:54:48.4287953Z  |    at AspNetCore.Ogrwgduu3god.Program.Main(String[] args) in C:\h\w\AF430994\w\B61409EA\e\Templates\BaseFolder\AspNetCore.Ogrwgduu3god\Program.cs:line 23
2023-02-28T09:54:48.4288033Z  | --- End of stack trace from previous location ---
2023-02-28T09:54:48.4288079Z  |    at Microsoft.Extensions.Hosting.HostFactoryResolver.HostingListener.CreateHost()
2023-02-28T09:54:48.4288257Z  |    at Microsoft.Extensions.Hosting.HostFactoryResolver.<>c__DisplayClass10_0.<ResolveHostFactory>b__0(String[] args)
2023-02-28T09:54:48.4288324Z  |    at Microsoft.Extensions.Hosting.HostFactoryResolver.<>c__DisplayClass13_0.<ResolveServiceProviderFactory>b__3(String[] args)
2023-02-28T09:54:48.4288513Z  |    at Microsoft.EntityFrameworkCore.Design.Internal.AppServiceProviderFactory.CreateFromHosting(String[] args)
2023-02-28T09:54:48.4288582Z  | An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: EventLog access is not supported on this platform.
2023-02-28T09:54:48.4288899Z  | No application service provider was found.
{
  "ErrorMessage": "System.PlatformNotSupportedException: EventLog access is not supported on this platform.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
380561 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
380063 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
379717 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
378438 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
377141 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
375640 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
374115 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
372548 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
372182 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
371808 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
370855 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
369495 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
367868 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
366405 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
365175 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
364828 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
364493 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
363284 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
361850 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
360329 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
358610 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
357131 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
356636 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
356166 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
355016 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
353631 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
352325 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
351066 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
349498 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain
349154 dotnet/aspnetcore Templates.Test.BlazorWasmTemplateTest.BlazorWasmHostedTemplate_IndividualAuth_Works_WithOutLocalDB_ProgramMain

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 7 30

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=321995 Result validation: ✅ Known issue matched with the provided build.

Issue Analytics

  • State:open
  • Created 7 months ago
  • Comments:55 (53 by maintainers)

github_iconTop GitHub Comments

1reaction
markwilkiecommented, May 24, 2023

Ok - confirmed that granting admin perms to the CI account on Win ARM64 is the right thing to do.

Anyone know how much this cost? Is it something we can do as part of SSA? It’s becoming quite painful for Artak’s team.

1reaction
garathcommented, May 16, 2023

Thanks for the info. I’ll check into this as soon as I can, but it may be another day or two. Thanks for your patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found