Aspose components in Blazor WASM published to Azure

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)

@software.sboe.ncsbe,

Thanks for the screenshot and details.

We need to investigate your issue in details. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): BARCODENET-38610

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.