I have found the solution.
.Gitignore was excluding my AppSettings.json file from the Client/wwwroot folder.
ASP.Net Core hosted webassembly deployment issue. Failed to Construct URL
Mattias Lemmens
191
Reputation points
I have followed this tutorial from learn.microsoft.com with single tenant authentication.
It works fine in localhost.
But when I deploy it to an Azure App (Automatically set up during Azure App creation with GitHub repo action).
All I do in the app is set the Environment Variables for the host as they were specified in the appsettings.json file .
When i attempt to run the client and then get the following error. I added the full error message and also a printscreen of the browser with the error for clarity.
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Failed to construct 'URL': Invalid URL
TypeError: Failed to construct 'URL': Invalid URL
at new u (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:1989)
at Function.init (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:7229)
at https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3942
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3908)
at Object.w [as invokeJSFromDotNet] (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:64232)
at _mono_wasm_invoke_js_blazor (https://streportstest01.azurewebsites.net/_framework/dotnet.5.0.7.js:1:190800)
at do_icall (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[10596]:0x194e4e)
at do_icall_wrapper (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[3305]:0x79df9)
at interp_exec_method (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[2155]:0x44ad3)
Microsoft.JSInterop.JSException: Failed to construct 'URL': Invalid URL
TypeError: Failed to construct 'URL': Invalid URL
at new u (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:1989)
at Function.init (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:7229)
at https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3942
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3908)
at Object.w [as invokeJSFromDotNet] (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:64232)
at _mono_wasm_invoke_js_blazor (https://streportstest01.azurewebsites.net/_framework/dotnet.5.0.7.js:1:190800)
at do_icall (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[10596]:0x194e4e)
at do_icall_wrapper (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[3305]:0x79df9)
at interp_exec_method (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[2155]:0x44ad3)
at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15`1[[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<EnsureAuthService>d__27[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticatedUser>d__26[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetUser>d__25[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticationStateAsync>d__17[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.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)
d.printErr @ blazor.webassembly.js:1
d.preRun.push.window.Blazor._internal.dotNetCriticalError @ blazor.webassembly.js:1
w @ blazor.webassembly.js:1
_mono_wasm_invoke_js_blazor @ dotnet.5.0.7.js:1
do_icall @ dotnet.wasm:0x194e4e
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_try_invoke @ dotnet.wasm:0x12982
mono_runtime_invoke @ dotnet.wasm:0x10ec2b
mono_wasm_invoke_method @ dotnet.wasm:0x108e48
Module._mono_wasm_invoke_method @ dotnet.5.0.7.js:1
call_method @ dotnet.5.0.7.js:1
(anonymous) @ dotnet.5.0.7.js:1
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
w @ blazor.webassembly.js:1
_mono_wasm_invoke_js_blazor @ dotnet.5.0.7.js:1
do_icall @ dotnet.wasm:0x194e4e
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_try_invoke @ dotnet.wasm:0x12982
mono_runtime_invoke @ dotnet.wasm:0x10ec2b
mono_wasm_invoke_method @ dotnet.wasm:0x108e48
Module._mono_wasm_invoke_method @ dotnet.5.0.7.js:1
call_method @ dotnet.5.0.7.js:1
set_task_result @ dotnet.5.0.7.js:1
(anonymous) @ dotnet.5.0.7.js:1
Promise.then (async)
js_to_mono_obj @ dotnet.5.0.7.js:1
d.preRun.push.window.Blazor._internal.getSatelliteAssemblies @ blazor.webassembly.js:1
w @ blazor.webassembly.js:1
_mono_wasm_invoke_js_blazor @ dotnet.5.0.7.js:1
do_icall @ dotnet.wasm:0x194e4e
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_invoke_checked @ dotnet.wasm:0xf65d
mono_runtime_try_invoke_array @ dotnet.wasm:0x10e831
ves_icall_InternalInvoke @ dotnet.wasm:0xed492
ves_icall_InternalInvoke_raw @ dotnet.wasm:0xecf57
do_icall @ dotnet.wasm:0x194ddb
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_try_invoke @ dotnet.wasm:0x12982
mono_runtime_invoke @ dotnet.wasm:0x10ec2b
mono_wasm_invoke_method @ dotnet.wasm:0x108e48
Module._mono_wasm_invoke_method @ dotnet.5.0.7.js:1
call_method @ dotnet.5.0.7.js:1
(anonymous) @ dotnet.5.0.7.js:1
callEntryPoint @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
a @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
a @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
a @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
r @ blazor.webassembly.js:1
g @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
n @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
streportstest01.azurewebsites.net/:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://streportstest01.azurewebsites.net/css/open-iconic/font/fonts/open-iconic.woff
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Failed to construct 'URL': Invalid URL
TypeError: Failed to construct 'URL': Invalid URL
at new u (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:1989)
at Function.init (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:7229)
at https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3942
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3908)
at Object.w [as invokeJSFromDotNet] (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:64232)
at _mono_wasm_invoke_js_blazor (https://streportstest01.azurewebsites.net/_framework/dotnet.5.0.7.js:1:190800)
at do_icall (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[10596]:0x194e4e)
at do_icall_wrapper (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[3305]:0x79df9)
at interp_exec_method (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[2155]:0x44ad3)
Microsoft.JSInterop.JSException: Failed to construct 'URL': Invalid URL
TypeError: Failed to construct 'URL': Invalid URL
at new u (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:1989)
at Function.init (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:7229)
at https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3942
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3908)
at Object.w [as invokeJSFromDotNet] (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:64232)
at _mono_wasm_invoke_js_blazor (https://streportstest01.azurewebsites.net/_framework/dotnet.5.0.7.js:1:190800)
at do_icall (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[10596]:0x194e4e)
at do_icall_wrapper (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[3305]:0x79df9)
at interp_exec_method (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[2155]:0x44ad3)
at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15`1[[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<EnsureAuthService>d__27[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticatedUser>d__26[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetUser>d__25[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticationStateAsync>d__17[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.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.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
d.printErr @ blazor.webassembly.js:1
d.preRun.push.window.Blazor._internal.dotNetCriticalError @ blazor.webassembly.js:1
w @ blazor.webassembly.js:1
_mono_wasm_invoke_js_blazor @ dotnet.5.0.7.js:1
do_icall @ dotnet.wasm:0x194e4e
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_try_invoke @ dotnet.wasm:0x12982
tp_cb @ dotnet.wasm:0xf7d88
mono_background_exec @ dotnet.wasm:0x9a696
Module._mono_background_exec @ dotnet.5.0.7.js:1
pump_message @ dotnet.5.0.7.js:1
setTimeout (async)
_schedule_background_exec @ dotnet.5.0.7.js:1
mono_threads_schedule_background_job @ dotnet.wasm:0x26ea8
mono_wasm_queue_tp_cb @ dotnet.wasm:0x108c2f
do_icall @ dotnet.wasm:0x194eeb
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_try_invoke @ dotnet.wasm:0x12982
mono_runtime_invoke @ dotnet.wasm:0x10ec2b
mono_wasm_invoke_method @ dotnet.wasm:0x108e48
Module._mono_wasm_invoke_method @ dotnet.5.0.7.js:1
call_method @ dotnet.5.0.7.js:1
(anonymous) @ dotnet.5.0.7.js:1
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
w @ blazor.webassembly.js:1
_mono_wasm_invoke_js_blazor @ dotnet.5.0.7.js:1
do_icall @ dotnet.wasm:0x194e4e
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_try_invoke @ dotnet.wasm:0x12982
mono_runtime_invoke @ dotnet.wasm:0x10ec2b
mono_wasm_invoke_method @ dotnet.wasm:0x108e48
Module._mono_wasm_invoke_method @ dotnet.5.0.7.js:1
call_method @ dotnet.5.0.7.js:1
set_task_result @ dotnet.5.0.7.js:1
(anonymous) @ dotnet.5.0.7.js:1
Promise.then (async)
js_to_mono_obj @ dotnet.5.0.7.js:1
d.preRun.push.window.Blazor._internal.getSatelliteAssemblies @ blazor.webassembly.js:1
w @ blazor.webassembly.js:1
_mono_wasm_invoke_js_blazor @ dotnet.5.0.7.js:1
do_icall @ dotnet.wasm:0x194e4e
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_invoke_checked @ dotnet.wasm:0xf65d
mono_runtime_try_invoke_array @ dotnet.wasm:0x10e831
ves_icall_InternalInvoke @ dotnet.wasm:0xed492
ves_icall_InternalInvoke_raw @ dotnet.wasm:0xecf57
do_icall @ dotnet.wasm:0x194ddb
do_icall_wrapper @ dotnet.wasm:0x79df9
interp_exec_method @ dotnet.wasm:0x44ad3
interp_runtime_invoke @ dotnet.wasm:0x12efff
mono_jit_runtime_invoke @ dotnet.wasm:0x118e5f
do_runtime_invoke @ dotnet.wasm:0x79d42
mono_runtime_try_invoke @ dotnet.wasm:0x12982
mono_runtime_invoke @ dotnet.wasm:0x10ec2b
mono_wasm_invoke_method @ dotnet.wasm:0x108e48
Module._mono_wasm_invoke_method @ dotnet.5.0.7.js:1
call_method @ dotnet.5.0.7.js:1
(anonymous) @ dotnet.5.0.7.js:1
callEntryPoint @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
a @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
a @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
a @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
r @ blazor.webassembly.js:1
g @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
n @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Failed to construct 'URL': Invalid URL
TypeError: Failed to construct 'URL': Invalid URL
at new u (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:1989)
at Function.init (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:7229)
at https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3942
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3908)
at Object.w [as invokeJSFromDotNet] (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:64232)
at _mono_wasm_invoke_js_blazor (https://streportstest01.azurewebsites.net/_framework/dotnet.5.0.7.js:1:190800)
at do_icall (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[10596]:0x194e4e)
at do_icall_wrapper (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[3305]:0x79df9)
at interp_exec_method (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[2155]:0x44ad3)
Microsoft.JSInterop.JSException: Failed to construct 'URL': Invalid URL
TypeError: Failed to construct 'URL': Invalid URL
at new u (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:1989)
at Function.init (https://streportstest01.azurewebsites.net/_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js:1:7229)
at https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3942
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:3908)
at Object.w [as invokeJSFromDotNet] (https://streportstest01.azurewebsites.net/_framework/blazor.webassembly.js:1:64232)
at _mono_wasm_invoke_js_blazor (https://streportstest01.azurewebsites.net/_framework/dotnet.5.0.7.js:1:190800)
at do_icall (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[10596]:0x194e4e)
at do_icall_wrapper (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[3305]:0x79df9)
at interp_exec_method (https://streportstest01.azurewebsites.net/_framework/dotnet.wasm:wasm-function[2155]:0x44ad3)
at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15`1[[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<EnsureAuthService>d__27[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticatedUser>d__26[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetUser>d__25[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService`3.<GetAuthenticationStateAsync>d__17[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Authentication.WebAssembly.Msal.Models.MsalProviderOptions, Microsoft.Authentication.WebAssembly.Msal, Version=5.0.7.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)
Accepted answer
-
Mattias Lemmens 191 Reputation points
2021-06-30T23:57:55.843+00:00