Application Metadata (AppInfoModel)
  • Application Name & Version DSTAPI v4.1.9.0
  • App Description A lightweight, high-performance DST api client handler
  • App Type ASP .NET 8 CORE API
  • Environment Mode Server
  • Token D5EE2R6ER6D3FF54E359
Device & Client Profile (PhysicalDeviceInformation)
  • Form Factor Desktop Workspace
  • Manufacturer & Model ATUL-SINGH Microsoft Windows 10.0.26200
  • Platform / OS .NET 8.0.21
  • Client IP Address 122.161.53.62
  • Exception Status & Mode Flags
    Status: Unhandled Mode: Development
Code Reference & Location
Timestamp 2026-09-28 15:01:43 +05:30
Line Number Line 281
Namespace DSTAPI.Controllers.Sales.Sales
Page / Component Name SalesDetailsController
Method Name DownloadPdf
Site Map DSTAPI.Controllers.Sales.Sales - SalesDetailsController/DownloadPdf
File Path Source D:\Blazor\DSTAPI\Controllers\Sales\Sales\SalesDetailsController.cs
Exception Message Payload
Primary Message
You should not assign multiple child elements to a single-child container. This may happen when a container variable is used outside of its scope/closure OR the container is used in multiple fluent API chains OR the container is used incorrectly in a loop. This exception is thrown to help you detect that some part of the code is overriding fragments of the document layout with a new content - essentially destroying existing content.
Full Stack Trace Diagnostics
   at QuestPDF.Fluent.ElementExtensions.Element[T](IContainer element, T child)
   at QuestPDF.Fluent.ElementExtensions.ShowIf(IContainer element, Predicate`1 predicate)
   at dst.pdf.PDF.Sales.A4.StandardSalesInvoice.<Compose>b__10_2(IContainer headerContainer) in D:\Final Project\ExportPDF\PDF\Sales\A4\StandardSalesInvoiceA4.cs:line 60
   at QuestPDF.Fluent.ElementExtensions.Element(IContainer parent, Action`1 handler, String handlerName, String parentName, String sourceFilePath, Int32 sourceLineNumber)
   at dst.pdf.PDF.Sales.A4.StandardSalesInvoice.<Compose>b__10_0(PageDescriptor page) in D:\Final Project\ExportPDF\PDF\Sales\A4\StandardSalesInvoiceA4.cs:line 53
   at QuestPDF.Fluent.PageExtensions.Page(IDocumentContainer document, Action`1 handler)
   at dst.pdf.PDF.Sales.A4.StandardSalesInvoice.Compose(IDocumentContainer container) in D:\Final Project\ExportPDF\PDF\Sales\A4\StandardSalesInvoiceA4.cs:line 44
   at QuestPDF.Drawing.DocumentGenerator.ConfigureContent(IDocument document, DocumentSettings settings, Boolean useOriginalImages)
   at QuestPDF.Drawing.DocumentGenerator.RenderSingleDocument(IDocumentCanvas canvas, IDocument document, DocumentSettings settings)
   at QuestPDF.Drawing.DocumentGenerator.RenderDocument(IDocumentCanvas canvas, IDocument document, DocumentSettings settings)
   at QuestPDF.Drawing.DocumentGenerator.GeneratePdf(SkWriteStream stream, IDocument document)
   at QuestPDF.Fluent.GenerateExtensions.GeneratePdf(IDocument document, Stream stream)
   at QuestPDF.Fluent.GenerateExtensions.GeneratePdf(IDocument document)
   at dst.pdf.PDF.Sales.A4.StandardSalesInvoiceA4.Download(InvoiceModel model, InvoicingCompanyDataRequriedModel company, AccountStatementCoupling ledger, CompanyUPIModel upi) in D:\Final Project\ExportPDF\PDF\Sales\A4\StandardSalesInvoiceA4.cs:line 18
   at dst.admin.web.services.repo.Sales.Sales.Details.Repository.SalesDetailsRepository.ExportInvoiceInPDFFile(Int32 id, PaperType type, CancellationToken cancellationToken) in D:\Core Application\DST Admin Web Services\Sales\Sales\Details\Repository\ExportPDFFile.cs:line 49
   at DSTAPI.Controllers.Sales.Sales.SalesDetailsController.DownloadPdf(Int32 id, PaperType docsize, CancellationToken cancellationToken) in D:\Blazor\DSTAPI\Controllers\Sales\Sales\SalesDetailsController.cs:line 248