Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

File Manager - Telerik component for Blazor - .net8.0 - How to inject a service on a page using @rendermode InteractiveWebAssembly

$
0
0

I have an issue that when loading page include a service, it has this exception:

InvalidOperationException: Cannot provide a value for property 'FileService' on type 'FutureVision.Portal.Client.Pages.FileManager'. There is no registered service of type 'FutureVision.Portal.Client.Services.IFileService'.

As I debug, the first time load the file-manager page, it not run into program.cs, and my service is not registered.

The file manager component needs @rendermode InteractiveWebAssembly to load the ui. How do I register my service at client site with the page using InteractiveWebAssembly?

Click to view image


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>