VirtoCommerce/vc-module-order

PDF invoice doesn't work on the Azure enviroment

tatarincev opened this issue · 2 comments

Steps to reproduce:

  1. Create the new platform installation on Azure env
  2. Open any exists order
  3. Click "Get invoice pdf"

Got error

"message": "An error has occurred.",
"exceptionMessage": "Cannot save a PDF document with no pages.",
"exceptionType": "System.InvalidOperationException",
"stackTrace": "   at PdfSharp.Pdf.PdfDocument.DoSave(PdfWriter writer)\r\n   at PdfSharp.Pdf.PdfDocument.Save(Stream stream, Boolean closeStream)\r\n   at VirtoCommerce.OrderModule.Web.Controllers.Api.OrderModuleController.GetInvoicePdf(String orderNumber)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__3(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at 
n2pro commented

I used the Azure environment on App Service plan: Free. Use GDI do not work in the sandbox.
To support GDI, you must use tariff basic or higher.