Add Blazor to ASP.NET Core Application not working

Hello Syncfusion-Team,

I try to add Syncfusion Client-Side Blazor components to an existing ASP.NET Core 3.1 App. It is building and running, but the controls are not rendered. Probably something in the configuration is missing.

I use .NET Core 3.1.10 SDK and Runtime, Visual Studio 16.8.2, Syncfusion Blazor 18.3.0.50

I tried a lot of stuff, (e.g. https://www.syncfusion.com/forums/149667/cant-get-syncfusion-blazor-components-working-in-razor-pages) but can't figure out how to get it working.

If you want to have a look at the repo, please send me a mail address, so I can add the user to the repo.

Best regards
Michael

7 Replies

SP Sureshkumar P Syncfusion Team November 24, 2020 11:40 AM UTC

Hi Michael, 
 
Greetings from Syncfusion support. 
 
Based on your shared information, we have created the Syncfusion Client-Side Blazor components to an existing ASP.NET Core 3.1 App. We suspect that you have missed to include the style script file to render the component.  
 
 
Regards, 
Sureshkumar P 



MP Michael Pusch replied to Sureshkumar P November 24, 2020 09:57 PM UTC

Hi Michael, 
 
Greetings from Syncfusion support. 
 
Based on your shared information, we have created the Syncfusion Client-Side Blazor components to an existing ASP.NET Core 3.1 App. We suspect that you have missed to include the style script file to render the component.  
 
 
Regards, 
Sureshkumar P 


Hi Sureshkumar,

thank you for your quick response. The css files are loaded, I checked in the browser. But <script src="_framework/blazor.webassembly.js"></script> seems not to work, the file is not loaded to the browser.

Also in your project I saw the referenced packages 
  • Microsoft.AspNetCore.Components.Webassembly
  • Microsoft.AspNetCore.Components.Webassembly.Build
  • Microsoft.AspNetCore.Components.Webassembly.DevServer
all in version 3.2.1. I added them to my project and got a linker error. I removed 
  • Microsoft.AspNetCore.Components.Webassembly.Build
and got the app running again, but now the app is showing the index.html on all links...

I upgraded to .NET 5.0 and the packages also to the last version, but that didn't help either.

Best regards
Michael




JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team November 26, 2020 02:16 PM UTC

Hi Michael, 

 
Please share the issue reproducing sample with permission in the below mentioned email id. So that we will check and update the further detail at our end. 

 
Email ID: [email protected] 

Regards,  
Jeyanth. 



MP Michael Pusch replied to Jeyanth Muthu Pratheeban Sankara Subramanian November 30, 2020 11:02 AM UTC

Hi Michael, 

 
Please share the issue reproducing sample with permission in the below mentioned email id. So that we will check and update the further detail at our end. 

 
Email ID: [email protected] 

Regards,  
Jeyanth. 


Done!


SP Sureshkumar P Syncfusion Team December 1, 2020 08:23 AM UTC

Hi Michael, 
 
We have not received any mail for the GitHub sample. So, please share the GitHub sample link with permission enabled as mentioned in the forum thread. This will help us to check the issue at our end. 
 
Regards, 
Sureshkumar P



MP Michael Pusch December 1, 2020 05:31 PM UTC

Hello Sureshkumar,

I sent an email to [email protected] with a link to the repo.
The repo is a GIT repo on https://xxx.visualstudio.com/xxx

Is it possible for you to access that repo?

Best regards,
Michael



BC Berly Christopher Syncfusion Team December 2, 2020 01:18 PM UTC

Hi Michael, 
  
A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates  
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon