We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

JSInterop.JSException with default File Manager PhysicalProvider setup

I am trying to use the File Manager control in a Blazor Server application. I followed all the required steps from the getting started guide and a sample application that I found here, in the forum, (https://www.syncfusion.com/downloads/support/forum/169708/ze/FileManager-1505989545). As a result I always get the error in Dev tools (see attached image):

Error: Microsoft.JSInterop.JSException: Failed to execute 'querySelector' on 'Document': '# e-fe-upload-dialog [title]' is not a valid selector.

I have setup a new Blazor Server project with the default template and followed all the above steps and I still get the same error. I am attaching this sample project for your reference.

5 Replies 1 reply marked as answer

SO Sotiris April 13, 2023 06:27 AM UTC

Here is the sample project

Attachment: BlazorFileManagerTest_93be0f1e.rar

SA SureshRajan Alagarsamy Syncfusion Team April 14, 2023 11:37 AM UTC

Hi Sotiris,

We have validated your reported issue and able to replicate in our Syncfusion latest package version of the File Manager component. We have considered it as bug from our end. The fix for this issue will be included in our upcoming patch release on April 18, 2023.

Feedback : https://www.syncfusion.com/feedback/42851/filemanager-crashes-on-startup-in-syncfusion-blazor-21-1-39-invalid-selector

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.


Marked as answer

SO Sotiris April 14, 2023 03:33 PM UTC


Can I temporally overcome the issue by using an older version of the controls, and which one, until the patch is ready?

Best Regards,

SA SureshRajan Alagarsamy Syncfusion Team April 17, 2023 06:42 AM UTC

Query: Can I temporarily overcome the issue by using an older version of the controls, and which one, until the patch is ready?

Yes, Sotiris.  You can use an older version of the Syncfusion File Manager package, which is version 21.1.38, as a temporary package until the latest NuGet version is released.


SA SureshRajan Alagarsamy Syncfusion Team April 19, 2023 09:51 AM UTC

Hi Sotiris,

Thanks for your patience.

We are glad to announce that our patch release (V21.1.41) has been rolled out successfully. The issues with “Script error occurs in file manager samples when connected with latest NuGet version 21.1.39” have been resolved in this release.

To access this fix, we suggest you update the package to 21.1.41 and we include the sample in the latest version for your reference.


Release Notes : https://blazor.syncfusion.com/documentation/release-notes/21.1.41?type=all#filemanager

Feedback : https://www.syncfusion.com/feedback/42851/filemanager-crashes-on-startup-in-syncfusion-blazor-21-1-39-invalid-selector

Please get in touch with us if you would require any further assistance.


Live Chat Icon For mobile
Up arrow icon