Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 752351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:46:17+00:00 2026-05-14T14:46:17+00:00

I have the binary for several pdf files stored in a collection of Byte

  • 0

I have the binary for several pdf files stored in a collection of Byte arrays.

My goal is to concatenate them into a single .pdf file using abcpdf, then stream that newly created file to the Response object on a page of an ASP.Net website.

Had been doing it like this:

BEGIN LOOP
…

'Create a new Doc
Dim doc As Doc = New Doc

'Read the binary of the current PDF
doc.Read(bytes)

'Append to the master merged PDF doc
_mergedPDFDoc.Append(Doc)

END LOOP

Which was working fine 95% of the time. Every now and then however, creating a new Doc object would throw a System.ExecutionEngineException and crash the CLR. It didn’t seem to be related to a large number of pdfs (sometimes would happen w/ only 2), or with large sized pdfs. It seemed almost completely random.

This is a known bug in abcpdf described (not very well) here Item 6.24. I came across a helpful SO post which suggested using a Using block for the abcpdf Doc object.

So now I’m doing this:

    Using doc As New Doc
        'Read the binary of the current PDF
        doc.Read(bytes)
        'Append to the master merged PDF doc
        _mergedPDFDoc.Append(doc)
    End Using

And I haven’t seen the problem occur again yet, and have been pounding on a test version as best as I can to get it to.

Has anyone had any similar experience with this error? Did this fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:46:17+00:00Added an answer on May 14, 2026 at 2:46 pm

    ExecutionEngineExceptions are thrown when there is an internal error in the CLR, so this is one for Microsoft to fix.

    Wrapping code in a using or try-catch block is therefore unlikely to work.

    The issue mentioned on webSupergoo’s website related to .NET 3.5 SP1, and how security attributes were applied to an assembly. I’ve observed this fault occurs while debugging web pages and suspect the issue is also connected to ASP.NET dynamic compilation.

    ABCpdf version 7.010 and later work-around the problem. Apologies for a silly question, but did you try the latest version?

    You can check which version of ABCpdf is currently installed by using the PDFSettings utility, located via Windows Start menu > Programs > ABCpdf 7.0 .NET

    If updating ABCpdf is not an option then you may need to consider uninstalling .NET 3.5 SP1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web server which will read large binary files (several megabytes) into
I have a set of zip files which contains several ieee-be encoded binary and
I have a Binary file that has several names followed by some details (50
I have a script that generates a temporary PDF file, binary-streams it to the
I have several -small- binary files added in my Mercurial repository. The files are
I have a very large set of binary files where several thousand raw frames
I have some binary files that I'd like to embed in a dll I'm
I have multiple binary trees stored as an array. In each slot is either
I have a several DBF files generated by a third party that I need
I have several encoded strings and I need to decode them, my guess is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.