Search code examples
asp.net-coreblazorblazor-client-side

Blazor webAssembly code in Azure StorageAccount


Just watched some blazor videos and follow the same step to create and publish first sample app in Azure storage account. I'm able to run Blazor app without any error in local machine but after publish app in storage account getting below error

Any idea why this error?

enter image description here


Solution

  • Seems like a problem with Content-type setting in the storage account.

    The mono.wasm content type should be application/wasm. Look into the storage account and if it is different set it to application/wasm.

    Storage Account - File details