microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.18k stars 321 forks source link

System.Resources.MissingSatelliteAssemblyException #2554

Closed AlaJaber97 closed 2 months ago

AlaJaber97 commented 2 months ago

I get this exception when trying to use LSP PowerFX:

// System.Resources.MissingSatelliteAssemblyException: The satellite assembly named "Microsoft.PowerFx.Core.resources.dll, PublicKeyToken=31bf3856ad364e35" for fallback culture "en-US" either could not be found or could not be loaded. This is generally a setup problem. Please consider reinstalling or repairing the application.

I built the project as browser-wasm and used blazor.webassembly.js to load the dependency files.

image

Shared Project [PowerFxLibrary]:

image

For more details, you can check the related issue below: https://github.com/microsoft/Power-Fx/issues/691#issuecomment-2232693802

AlaJaber97 commented 2 months ago

I solve my issue after add this line in Main Method var builder = WebAssemblyHostBuilder.CreateDefault(args); await builder.Build().RunAsync();