OrchardCore.Samples icon indicating copy to clipboard operation
OrchardCore.Samples copied to clipboard

Added Blazor Sample

Open ns8482e opened this issue 2 years ago • 3 comments

Added Blazor Sample as described in guide

@Skrypt @agriffard

ns8482e avatar Jan 31 '24 04:01 ns8482e

Launching the project for the first time, without anything in App_Data, I had an error :

System.InvalidOperationException: Cannot provide a value for property 'SiteService' on type 'OCBlazorLib.Pages.Content'. There is no registered service of type 'OrchardCore.Settings.ISiteService'.

I changed the route of Home.razor from @page "/" to @page "/home" and then, I have been able to have the setup screen.

agriffard avatar Jan 31 '24 09:01 agriffard

@agriffard Updated the home link to /home

ns8482e avatar Jan 31 '24 13:01 ns8482e

@agriffard Updated the home link to /home

After the setup, I changed it back to "/" in order to get a root url.

agriffard avatar Jan 31 '24 15:01 agriffard