web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Clr object could not be created

(0) ShareShare
ReportReport
Posted on by

Hi experts ,

i have this error "Clr object could not be created" after this line " reader = new iTextSharp.text.pdf.PdfReader(file)" what could be the problem !! i have added the dll in bin and the reference in aot !

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,817 Most Valuable Professional on at

    There are several reasons why the constructor may be throwing an exception. For example, "file" is a file path that doesn't exist, the process doesn't have permissions to read the file, "file" is a byte array that don't contain valid PDF and so on.

    Test the value before passing it to the constructor.

  • Community Member Profile Picture
    on at

    Thanks martin ,  i will test that ! but first need i to recompile the aot and generate the cil after adding the reference !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans