Click here to Skip to main content
15,887,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application that I am converting to work in a 64bit environment, this application was initially written to be 32bit. Unfortunately, AcroPDFlib seems to be throwing a 'Class Not Registered (0X80040154)' Error at me.

This is a dll add-in to 64bit AutoCAD so my app must continue to be 64bit. As I have things set for 'AnyCPU' the same binary still works flawlessly in 32bit AutoCAD.

I have no idea where to go from here so any help would be greatly appreciated.

Thank you,
Jason Self
Posted
Updated 24-Aug-11 8:05am
v2
Comments
Member 12377175 18-Mar-16 3:00am    
can we convert html to pdf using acropdflib library..???
if yes then please provide the solution...

According to this forum post, this is caused when a 32 bit version of the AcroPDFlib is used. As of the writing of that entry (which was quite a while ago) there wasn't a 64bit version available.
http://forums.adobe.com/message/2391380[^]
This one too: http://p2p.wrox.com/net-framework-2-0/77011-axinterop-acropdflib-dll-throws-class-not-registered-error-64-bit-os.html[^]

This forum seems to have produced a resolution to your problem: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/75cc92de-1649-431a-a688-3aab16ca86e2/[^]
 
Share this answer
 
Comments
JasonSelf 24-Aug-11 21:53pm    
I am aware of the reason, and noted that most of the places I have found this issue discussed were circa 2009. I can't target 32bit since this will be a plug-in dll for a 64bit application. I don't currently see any solution that will work while continuing to target 64bit.
build/compile your code with target platform 'X86' and then try.
 
Share this answer
 
Comments
JasonSelf 25-Aug-11 7:46am    
Unfortunately that will not work when you are bringing the compiled dll into a 64bit environment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900