SfUploader compilation error

Subject: SfUploader compilation  is not working


Hi Team;

I just downloaded the trial package. I am trying to set a demo using your controls.

Could you tell me why I get the red lines (see below) on a razor page even though I have used:

@using Microsoft.AspNetCore.Hosting

@using Microsoft.AspNetCore.Components.Forms;

@using Syncfusion.Blazor

@using Syncfusion.Blazor.Inputs

Thanks

Intesar Ramley

[email protected]


Image_9774_1752097817918


Attachment: FileUploadPageRazorFile_207665b.txt

3 Replies

MR Mallesh Ravi Chandran Syncfusion Team July 10, 2025 12:18 PM UTC

Hi Intesar, 

Thank you for reaching out to us regarding the issue with the Uploader component. Based on the code snippet you provided, we suspect that there are a couple of missing elements that may be contributing to the issue. Firstly, the Progressing event in the Uploader is mentioned but needs to be bound to a method in your code. Secondly, the method OnChange_00(UploadChangeEventArgs args) is defined but isn't bound to any event, so please ensure its referenced correctly where needed. 

Documentation reference: https://blazor.syncfusion.com/documentation/file-upload/getting-started-with-web-app

Additionally, since the native InputFile is included, make sure it aligns with upload logic. To help further, we've prepared a simple sample with the necessary code changes for your reference. Please review this sample, and if you encounter issues, sharing a reproducible issue example will aid in identifying the root cause. If you have more questions or need further assistance, feel free to contact us.

Regards,
Mallesh R



Attachment: Uploader_e34c6ac1.zip


IF Intesar F. K. EL Ramley July 30, 2025 12:04 AM UTC

Sorry, I haven't responded to your earlier email. I wasn't able to use your sample with VS2022. See the error/warning below.


Thanks


Image_5536_1753833788203



MR Mallesh Ravi Chandran Syncfusion Team July 30, 2025 06:11 PM UTC

We have reviewed the situation and would like to clarify that this issue is not related to Syncfusion components. The errors shown in your screenshots are due to Visual Studio configuration or cache problems, and not caused by the controls or libraries used in the sample. To resolve this, we recommend the following steps:


1] Close Visual Studio completely.

2] Navigate to %LocalAppData%\Microsoft\VisualStudio\<your_VS_version>\ComponentModelCache and delete the contents of this folder.

3] Open the Visual Studio Installer and check for any product updates. Please update Visual Studio to the latest version if any updates are available.

If the issue persists, consider using the "Repair" option in the Visual Studio Installer.


For more guidance, you may refer to these Microsoft resources:

https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/installation/troubleshoot-installation-issues

https://learn.microsoft.com/en-gb/answers/questions/1187471/visual-studio-2022-community-project-not-load-solu


Loader.
Up arrow icon