We’re working on a project that’s written in Blazor WASM and using Aspose components. We’re starting with trying the BarCode component. In our testing the code for creating a barcode works when running locally, but causes an error when published to Azure.
This is with Aspose.BarCode (23.4.0) from NuGet
In the Program.cs the license is being set using:
Aspose.BarCode.License barcodeLicense = new Aspose.BarCode.License();
barcodeLicense.SetLicense(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("."));
The license file is in the root of the project as an embedded resource.
The code for generating the barcode is run through a button click and starts with the following
BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.Pdf417, "This is a test PDF417");
MemoryStream barcode = new MemoryStream();
The code works locally, but when published to Azure, the following error is displayed in the console.
image.png (21.5 KB)