Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.12.2] SafeFireAndForget에서 ILogger 미등록 오류 발생 #183

Closed
rkttu opened this issue Feb 4, 2024 · 0 comments
Closed

[1.12.2] SafeFireAndForget에서 ILogger 미등록 오류 발생 #183

rkttu opened this issue Feb 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working sentry

Comments

@rkttu
Copy link
Member

rkttu commented Feb 4, 2024

System.InvalidOperationException: No service for type 'Microsoft.Extensions.Logging.ILogger' has been registered.
  File "ServiceProviderServiceExtensions.cs", line 48, in object ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
    throw new InvalidOperationException(SR.Format(SR.NoServiceRegistered, serviceType));
  File "ServiceProviderServiceExtensions.cs", line 65, in T ServiceProviderServiceExtensions.GetRequiredService<T>(IServiceProvider provider)
    return (T)provider.GetRequiredService(typeof(T));
  File "App.xaml.cs", line 33, col 13, in void App.SetupHost(IHost host)+(Exception thrownException) => { }
  ?, in void SafeFireAndForgetExtensions.HandleException<TException>(in TException exception, in Action<TException> onException)
  ?, in async void SafeFireAndForgetExtensions.HandleSafeFireAndForget<TException>(Task task, bool continueOnCapturedContext, Action<TException> onException)
  File "Task.cs", line 1914, in void Task.ThrowAsync(Exception exception, SynchronizationContext targetContext)+(object state) => { }
    targetContext.Post(static state => ((ExceptionDispatchInfo)state!).Throw(), edi);
  ?, in object ExceptionWrapper.InternalRealCall(Delegate callback, object args, int numArgs)
  ?, in object ExceptionWrapper.TryCatchWhen(object source, Delegate callback, object args, int numArgs, Delegate catchHandler)
  ?, in void DispatcherOperation.InvokeImpl()
  ?, in void CulturePreservingExecutionContext.CallbackWrapper(object obj)
  ?, in void CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, object state)
  ?, in void DispatcherOperation.Invoke()
  ?, in void Dispatcher.ProcessQueue()
  ?, in IntPtr Dispatcher.WndProcHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
  ?, in object ExceptionWrapper.InternalRealCall(Delegate callback, object args, int numArgs)
  ?, in object ExceptionWrapper.TryCatchWhen(object source, Delegate callback, object args, int numArgs, Delegate catchHandler)
  ?, in object Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, object args, int numArgs)
  ?, in IntPtr HwndSubclass.SubclassWndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam)
  ?, in IntPtr UnsafeNativeMethods.DispatchMessage(in MSG msg)
  ?, in void Dispatcher.PushFrameImpl(DispatcherFrame frame)
  ?, in object Application.RunDispatcher(object ignore)
  ?, in int Application.RunInternal(Window window)
  File "Program.cs", line 42, col 9, in void Program.RunApp(string[] args)
  File "Program.cs", line 33, col 12, in void Program.Main(string[] args)
@rkttu rkttu added the bug Something isn't working label Feb 4, 2024
@rkttu rkttu self-assigned this Feb 4, 2024
@rkttu rkttu added the sentry label Feb 4, 2024
@rkttu rkttu changed the title [버그] SafeFireAndForget에서 ILogger 미등록 오류 발생 [1.12.2] SafeFireAndForget에서 ILogger 미등록 오류 발생 Feb 4, 2024
rkttu added a commit that referenced this issue Feb 5, 2024
@rkttu rkttu closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sentry
Projects
None yet
Development

No branches or pull requests

1 participant