-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hello,
On my server I have kind of exception that I do not understand. Here is the stack trace:
Unobserved Task Exception on System.Threading.Tasks.UnwrapPromise`1[System.Threading.Tasks.VoidTaskResult]
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendered. When prerendering is enabled, JavaScript interop calls can only be performed during the OnAfterRenderAsync lifecycle method.)
---> System.InvalidOperationException: JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendered. When prerendering is enabled, JavaScript interop calls can only be performed during the OnAfterRenderAsync lifecycle method.
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, CancellationToken cancellationToken, Object[] args)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at BlazorDownloadFile.BlazorDownloadFileService.<.ctor>b__4_0()
--- End of inner exception stack trace ---
Do you have any idea I can investigate ?
thanks :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels