Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,

I'm trying to use your SfFileManager component in blazor server-side hosting scenario, and it is throwing the following exception which breaks blazor circuit:


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.'

the call stack is:

  Microsoft.AspNetCore.Components.Server.dll!Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.BeginInvokeJS(long asyncHandle, string identifier, string argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId) Unknown

  Microsoft.JSInterop.dll!Microsoft.JSInterop.JSRuntime.InvokeAsync(long targetInstanceId, string identifier, System.Threading.CancellationToken cancellationToken, object[] args) Unknown

  Microsoft.JSInterop.dll!Microsoft.JSInterop.JSRuntime.InvokeAsync(long targetInstanceId, string identifier, object[] args) Unknown

  Microsoft.JSInterop.dll!Microsoft.JSInterop.JSRuntime.InvokeAsync(string identifier, object[] args) Unknown

  Syncfusion.Blazor.Core.dll!Syncfusion.Blazor.Internal.SfBaseUtils.InvokeMethod(Microsoft.JSInterop.IJSRuntime jsRuntime, string methodName, object[] methodParams) Unknown

> Syncfusion.Blazor.Core.dll!Syncfusion.Blazor.SfBaseComponent.InvokeMethod(string methodName, bool isObjectReturnType, object[] methodParams) Unknown

  Syncfusion.Blazor.FileManager.dll!Syncfusion.Blazor.FileManager.SfFileManager.OnParametersSetAsync() Unknown

  Microsoft.AspNetCore.Components.dll!Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync() Unknown

  Microsoft.AspNetCore.Components.dll!Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() Unknown