Skip to content

Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined). #914

Description

@trabajoatorres-rgb

Description

Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).

Steps to Reproduce

  1. Follow instructions from https://docs.elsaworkflows.io/application-types/elsa-server-+-studio-wasm
  2. Temporarily fix this bug: ManagedError: AggregateException_ctor_DefaultMessage (Blazor detected a change in the application's culture that is not supported with the current project configuration elsa-core#7759
  3. You get:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
      Error: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
          at I (https://localhost:5001/_framework/blazor.webassembly.js:1:6748)
          at u.resolveInvocationHandler (https://localhost:5001/_framework/blazor.webassembly.js:1:379)
          at S (https://localhost:5001/_framework/blazor.webassembly.js:1:6447)
          at w.processJSCall (https://localhost:5001/_framework/blazor.webassembly.js:1:4440)
          at w.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.webassembly.js:1:4125)
          at Object.en [as invokeJSJson] (https://localhost:5001/_framework/blazor.webassembly.js:1:59109)
          at https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:34586
          at Mc (https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:175836)
          at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[298]:0x1f797
          at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[222]:0x1ca98
Microsoft.JSInterop.JSException: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
Error: Could not find 'AuthenticationService.init' ('AuthenticationService' was undefined).
    at I (https://localhost:5001/_framework/blazor.webassembly.js:1:6748)
    at u.resolveInvocationHandler (https://localhost:5001/_framework/blazor.webassembly.js:1:379)
    at S (https://localhost:5001/_framework/blazor.webassembly.js:1:6447)
    at w.processJSCall (https://localhost:5001/_framework/blazor.webassembly.js:1:4440)
    at w.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.webassembly.js:1:4125)
    at Object.en [as invokeJSJson] (https://localhost:5001/_framework/blazor.webassembly.js:1:59109)
    at https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:34586
    at Mc (https://localhost:5001/_framework/dotnet.runtime.a6jcqbs390.js:3:175836)
    at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[298]:0x1f797
    at https://localhost:5001/_framework/dotnet.native.veuqw8a0w9.wasm:wasm-function[222]:0x1ca98
   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__23`1[[Microsoft.JSInterop.Infrastructure.IJSVoidResult, Microsoft.JSInterop, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
   at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<EnsureAuthService>d__30[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticatedUser>d__29[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetUser>d__28[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticationStateAsync>d__19[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=10.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
   at Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.OnParametersSetAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions