title: A suitable constructor for type 'Microsoft.Extensions.Localization.StringLocalizer could not be located
body: <p>My Blazor WebAssembly published to Azure Static Files gives the following error:</p>
  
  <pre><code>Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
        Unhandled exception rendering component: A suitable constructor for type 'Microsoft.Extensions.Localization.StringLocalizer`1[CommandesAEmporter.Pages.Index]' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.
  System.InvalidOperationException: A suitable constructor for type 'Microsoft.Extensions.Localization.StringLocalizer`1[CommandesAEmporter.Pages.Index]' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.
  </code></pre>
  
  <p>When run on my PC, it works fine. I am using the following in my project:</p>
  
  <pre><code>-Project Sdk="Microsoft.NET.Sdk.Web"--
  
    --PropertyGroup--
      --TargetFramework--netstandard2.1--/TargetFramework--
      --RazorLangVersion--3.0--/RazorLangVersion--
      --ServiceWorkerAssetsManifest--service-worker-assets.js--/ServiceWorkerAssetsManifest--
    --/PropertyGroup--
  
    --ItemGroup--
      --PackageReference Include="Azure.Storage.Blobs" Version="12.4.2" /--
      --PackageReference Include="Blazored.LocalStorage" Version="2.1.6" /--
      --PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0" /--
      --PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0" PrivateAssets="all" /--
      --PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0" PrivateAssets="all" /--
      --PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="3.1.4" /--
      --PackageReference Include="Microsoft.Extensions.Localization" Version="3.1.5" /--
      --PackageReference Include="System.Net.Http.Json" Version="3.2.0" /--
    --/ItemGroup--
  
    --ItemGroup--
      --ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" /--
    --/ItemGroup--
  </code></pre>
  
  <p>Any help will be appreciated.</p>