Failed to Load Resource
DevExpress Blazor components use an RCL (Razor class library) with static assets to share resources. The following exceptions occur if your application does not load client-side resources correctly:
Failed to load resource: the server responded with a status of 404 () - dx-blazor.js
Failed to load resource: the server responded with a status of 404 () - dx-blazor.css
Failed to load resource: the server responded with a status of 404 () - dx-blazor.bs5.css
To fix this issue, check that:
- Correct CSS stylesheets are linked. v22.1 includes a breaking change that affects Blazor component render. Make sure that resources and themes are linked correctly.
The application is allowed to call to load client-side resources. Call the UseStaticWebAssets method on the host builder in the Program.cs file to enable the application to do that:
builder.WebHost.UseWebRoot("wwwroot"); builder.WebHost.UseStaticWebAssets();
Refer to the following topic for more information: Consume content from a referenced RCL.