Blazor WebAssembly Application fails to load due to integrity errors or you receive an unhandled exception error Print

  • 1

You may see the following error in your web browser after publishing a Blazor Website or App: "An Unhandled Exception has Occurred". Upon further investigation the following errors appear in your browser console when inspecting the page:

  • Unknown error occurred while trying to verify integrity.
  • Failed to load resource: the server responded with a status of 403 (forbidden)
  • Failed to find a valid digest in the 'integrity' attribute for resource '<somepath.dll>' with SHA-256 integrity <sha56>. the resource has been blocked

This is caused by the Web Application Firewall in Plesk preventing the execution of certain Blazor DLL's.  Currently, we recommend setting the Web Application Firewall to "Detection Only" if you encounter this error.

1. Login to Plesk and find the Web Application Firewall link:

2. Click Detection Only and Hit Save or Apply.


Was this answer helpful?

« Back