Acrobat COM Error
Hi,
I am working on a reporting application (C#) which uses the Acrobat
SDK. It's been deployed for about a week now on the end users'
machines and today they started getting the following error:
Message: Unable to cast COM object of type 'Acrobat.AcroPDDocClass' to
interface type 'Acrobat.CAcroPDDoc'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{9B4CD3E7-4981-101B-9CA8-9240CE2738AE}' failed due to the following
error: No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE)).
I googled the above error but got nothing. Anyone else seen this issue
before? As far as I knew AcroPDDocClass inherited from the interface
CAcroPDDoc and so the type conversion was valid.
I can't give you the whole code of that section, but here's a snippet.
The error points to the line with apddc.Open() which is weird because
there is no type conversion going on there.
string sTempExportFile = ...
AcroPDDocClass apddc = new AcroPDDocClass();
apddc.Open(sTempExportFile);
Acrobat.CAcroPDPage pdpage = apddc.AcquirePage(0) as
Acrobat.CAcroPDPage;
Acrobat.CAcroPoint point = pdpage.GetSize() as Acrobat.CAcroPoint;
I can get your code to run (more or less ) here is the code I use
string sTempExportFile = ......;
CAcroPDDocClass apddc = new AcroPDDocClass();
apddc.Open ( sTempExportFile);
I don't if the Missing 'C' at the start of CAcroPDDocClass is just a typo in the post or the problem.
HTH
Malky
Similar Messages
-
Getting a COM error when calling MenuItemExecute in batch mode
I support an internal document management system for our corporate contracts. Among other applications, I have one that runs nightly in batch mode to store new invoices and connect them via bookmarks to their corresponding “parent” contract files. The original program was created in 2005 with Acrobat 7 (later updated to Acrobat 8) and it worked well for several years. However, a few months ago I upgraded the system to Acrobat 9 and since then the program has not run consistently.
The “program” actually consists of a VB application and two plug-ins. The VB application does as much work as it can with IAC and the JSO bridge, but because the files are (owner) password protected one plug-in automatically applies the necessary password using AVDocDidOpen when the VB application opens the AVDoc. The VB application then also calls the other plug-in using MenuItemExecute. The second plug-in is used to create the bookmarks between the two files by grabbing info off bookmark strings and creating the necessary actions. It also applies the password to the files.
Here is brief outline form is how this is all structured:
pdDocParent.Open
pdDocInvoice.Open
avDocParent.Open (This triggers the first plug-in to apply the password)
Create bookmark strings in both files using JSO bridge
MenuItemExecute (To create the bookmark action in the parent)
pdDocParent.Save
avDocParent.Close
avDocInvoice.Open (This triggers the first plug-in to apply the password)
MenuItemExecute (To create the bookmark action in the invoice)
pdDocInvoice.Save
avDocInvoice.Close
pdDocInvoice.Close
pdDocParent.Close
Since the upgrade, I’m getting a COM error [The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))] on a non-consistent basis when the application tries to call MenuItemExecute. When I say “non-consistent” I mean that some days the program will process several hundred files just fine. Other days it won’t process any. Then some days it will not process the first, oh, four files but will process the next 300. Usually it runs fine when started interactively, but even then the error sometimes occurs.
I recompiled both plug-ins and the VB app using the Acrobat 9 SDK (headers for the plug-in and the Acrobat type library for the VB app) but that didn’t make any difference. I added code to check if the MenuItem is available and it is in all cases.
After reviewing this more, I got to thinking that perhaps a race condition was the culprit—that a string hadn’t been completely written before the second plug-in tried to create an action for it. So I added some half-second pauses along the way, but that doesn’t seem to have helped, either.
At this point the only thing I can think of is to rewrite the application as a pure plug-in. But it’s a long and involved application and if I can get the current app to work I’d prefer to do that. I tested it with Acrobat 10.1 and encountered similar problems.
As I said, it’s been working fine up until Acrobat 9. Does anyone know of anything that might have changed with Acrobat 9 that I haven’t considered? Is there anything else I might check? Thanks.Leonard,
I'd be interested in hearing why you think that because others at Adobe have told me it's OK. Acrobat is only being called by one user at a time and we've paid for a full license.
Thanks,
Dick -
When I try to open a pdf I get a acrobat reader error, It states ( There was an error opening this document. Could not repair file.
There is not modern program called Acrobat Reader. There is an Adobe Reader program, there is an Adobe Acrobat (Pro or Std) program. Which program are you using? Under which OS?
Please repost your question with your answer to either the Adobe Reader forum: http://forums.adobe.com/community/adobe_reader_forums or or the Acrobat Installation forum: http://forums.adobe.com/community/acrobat/installation_and_update_installation -
Cannot install acrobat reader, error code
Help I cannot insatll acrobat reader, error code #1925, install keeps failing
Try downloading the offline installer from http://get.adobe.com/reader/enterprise/ and save it to disk, then right-click on the downloaded installer and select Run as Administrator.
-
Unable to install Acrobat Reader, Error 1406
Hi,
I Previously had Reader9 Installed, but when trying to upgrade I always had a failure. However the reader continued to work without the upgrade. I run Windows XP on this machine.
A few months ago a tried removing/uninstalling the Reader & reinstalling, as per instructions.
I no longer have any pdf reader on this computer
This fails to install geting to 73% of install, & stopping, with Error 1406.
"Could not write Value diable exceptionchain etc etc"
I have followed the instruction as per http://helpx.adobe.com/acrobat/kb/error-1402-error-1406-acrobat.html without success.
Can any one advise how I may remedy this issue?
ThanksRun the Acrobat Cleaner Tool and reinstall from scratch.
Mylenium -
COM error while submitting certificate request
Hello there
I have created a group and assigned Read, Issue and Manage Certtificate, Manage CA & Request Certificate permission on the CA.When any member of this group try to sign a certificate request,
the following error accours.
Your request failed. An error occurred while the server was processing your request.
Contact your administrator for further assistance.
" type=button
Request Mode: newreq - New Request
Dis"font-size:9pt;">(never set)
Disposition message: (none)
Result: The RPC server is unavailable. 0x800706ba (WIN32: 1722)
COM Error Info: CCertRequest::Submit: The RPC server is unavailable. 0x800706ba (WIN32: 1722)
LastStatus: The operation completed successfully. 0x0 (WIN32: 0)
Suggested Cause: This error can occur if the Certification Authority Service has not been started.
During this time event ID 10016 is logged on the eventlog
The application-specific permission settings do not grant Local Launch permission for the COM Server application with CLSID
{D99E6E73-FC88-11D0-B498-00A0C90312F3}
and APPID
{D99E6E74-FC88-11D0-B498-00A0C90312F3}
to the user <Domain>\<Username> SID (<SID>) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
I have assigned the required permissions to the group on
CertSrv Request. Also verified the membership of
Certificate Service DCOM Access.
Can you please help me to resolve this?
Thanks
RanjithHi Ranjith,
I suggest you restart the certificate services and try to enroll certificates to test if the Certification Authority is functioning.
In addition, please make sure that ports in the blogs below are open:
Firewall Rules for Active Directory Certificate Services
http://blogs.technet.com/b/pki/archive/2010/06/25/firewall-roles-for-active-directory-certificate-services.aspx
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. What shall I do?
Alauda_positos I would recommend reviewing your installation log files to determine the exact directory which the installer is unable to access. You can find details on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html. You are welcome to post any specific errors discovered to this discussion.
For information on how to adjust file permissions please see Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html. -
How do i duplicate a file that is on acrobat. com?
The duplicate file function is there if the document is in my documents. But it is not there if the file is saved on acrobat.com
Hi pappagriz,
There is no such option, The only workaround i could recommend for this would be to download the file on your local drive, rename it by appending a 'copy' in the name of the file and then re-upload it to acrobat.com .
Regards,
Rahul -
I have a Crystal Report that I load and run from an ASP.Net Web Application. It works fine on my machine. However when the code is deployed to the servers, intermittently (does not happen everytime), I receive the following exception:
System.IO.FileLoadException: Retrieving the COM class factory for component with CLSID {XXX} failed due to the following error: 8007045a.
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
When I search for this error I am not able to find the exact cause of the COM error 8007045a or the System.IO.FileLoadException. But many people have encountered other COM Errors with Crystal Reports and have suggested changing the Project properties -> Build -> Platform Target to x86 from 'Any CPU'.
Is this indeed the action to be taken for the COM error 8007045a or the System.IO.FileLoadException too?
One of the folks suggested the following: It is a low-level Windows error, not a COM error. The DllMain() entrypoint of one of the unmanaged code DLLs used by CR returned FALSE.
Any suggestions here?
Thanks in advance
Vikas
Edited by: vikasmanghani on Dec 22, 2011 3:53 PMHi Don
The CR version is Crystal Reports 2008 SP3.
OS - Windows Server 2003
IIS - IIS 6 (I am not entirely sure, but most likely it is IIS 6).
Does it matter, if I instantiate the ReportDocument derived class on a separate thread. For e.g.
Main Thread:
MyReportClass rpt;
Thread t1 = new Thread(InitRpt);
t1.IsBackground = true;
t1.Start();
//perform some additional work
t1.Join();
Thread t1:
rpt = new MyReportClass();
rpt.FileName = "";
rpt.Load();
Also the BuildAction property for the report is set to Content.
As an aside, I noticed another error on a different server:
System.Runtime.InteropServices.COMException (0x80000003): Retrieving the COM class factory for component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} failed due to the following error: 80000003.
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
For this COM Error 80000003, I was able to search on SAP forums and locate the following:
1. Some people have asked to re-register clientdoc.dll using regsvr32.
2. Some people have suggested rebooting the server.
3. Some have suggested running in 32-bit mode. I am not sure if this server is 64-bit or 32-bit.
It would be great if you could help me with this one too.
Thanks in advance.
Regards
Vikas
Edited by: vikasmanghani on Dec 24, 2011 4:38 AM
Edited by: vikasmanghani on Dec 24, 2011 4:42 AM -
COM - error Unknown in /sapapo/mat1 transaction
Hi,
I am using SCM 4.1 and LiveCache 7.5.0.
In the transaction /sapapo/mat1 i select a product and its location.
Then in the Extras Menu when i select Where-Used List, it shows the message "COM - error Unknown"
COM - error Unknown
Message no. /SAPAPO/OM001
Diagnosis
A COM routine has encountered a program error.
System response
The program will be terminated.
Procedure
Start the program again.
If this message appears again, contact your system administration.
Please help me on this.
Regards,
Chintanhi - try running the livecache consistency check (/n/sapapo/om17) for product-locations and correct any errors that may be detected and try again to use the where-used functionality.
Regards
Vinod -
Does anyone know of a document where COM error codes are described?
Specifically we're seing messages as below in background job logs.
Error for COM routine using application program (return code 3)
Error for COM routine using application program (return code 2)
Thank youHi
There is a transaction which returns the meaning of any COM error return code, run /SAPAPO/OM10 and then enter the return code you want to investigate. The program should then provide the full message details.
Regards
Ian -
Hi,
I have excel 2013 Professional installed and i have created a windows service to open the excel document and read it.
Service is running as System account.
Now when i am trying to access the excel doucment, it is throwin the exception as
EXCEL COM ERROR Error Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}
however, when i am using the console application running as administrator, i am able to open same file.
Any yes, i am using 64 bit service C++ and excel binaries are Any CPU.
Please note: I have already tried using dcomconfig and assigned full permission to the system user.
Is there any other solution for this issue.
regards
PushpendraHello Pushpendra,
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit
unstable behavior and/or deadlock when Office is run in this environment.
If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side.
If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.
You can read more about that in the
Considerations for server-side Automation of Office article.
Consider using the Open XML SDK, see
Welcome to the Open XML SDK 2.5 for Office . Also any third-party components can be used instead. -
Requirements Gateway: Visio - COM error
Dear Developers!
I have a problem using Visio files in Requirements Gateway 1.1: when I open the example project ('Visio Example.rqtf) this info is shown:
Error: COM error (Class not registered)
Error: Conversion problem (file ...\Visio Example.vsd)
The operation system is Windiws Server Standard SP1. There is no full version Visio installed only Microsoft Office Visio Viewer 2007. Could this be the problem, or should I change some configuration of the Requirements Gatewaw?
Knáb LászlóYou can perform traceability analysis on Visio documents by capturing
traceability information from the custom properties in Visio 2003 or shape
data in Visio 2007 or by creating references in the Graphical View in
Requirements Gateway.
(Excerp from "Coupling Microsoft Visio with NI Requirements Gateway")
Hm, i would say your guess is quite promissing: you will need i full version of Visio in order to get it to work since ther is nothing said about Visio Viewer.
Maybe you can get some kind of evaluation version for Visio in order to test this.
thanks,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Optimizer run error - COM error 2 1 when deleting transportation orders
Hi Experts,
Optimizer run job (program /SAPAPO/RMSNPOPT) gets failed with following error: -
COM error 2 1 when deleting transportation orders
Can anybody let us know why this error occurs and how to resolve it. Thanks a lot.
Regards,
ChandanHi Chandan,
Could you check SAP note 1232670 whether applicable
for you
Regards
R. Senthil Mareeswaran. -
HT4802 I want to update m'y iPad with my MacBook pro it com error 9003
I want to update m'y iPad with my MacBook pro it com error 9003
You can share the files via your iCloud account, if they are Pages or Numbers files. You can email them as attachments to the other person, or provide them on a flash drive so they can import them on their computer.
I would not try to copy the files direct from my computer to someone else's iPad.
Maybe you are looking for
-
Top_of_page is not working in ALV hierarchy?
Hi, I have written following code for top_of_page using event but which is not working...This report is developed for interactive report. Note: passed the it_events into ALV hierarchy functional module. FORM build_event_tab . CALL FUNCTION '
-
Musik with Dialog not playing correctly
Hi there. Music with spoken texts is not played correctly on my T410i with Windows 8 pro installed. For example, the soundtrack to Kill Bill1 Track 5: Queen of the Crime Council - dialogue excerpt from film Track 6: "Ode To Oren Ishii" - The RZA The
-
New Computer Transfer Difficulty
I am trying to transfer all of my music from my nano to a new computer/library. (including songs not purchased through itunes) My last computer crashed, and required a whole new operating system - so I cannot go back to burn the files. Is there any w
-
Firefox Lags Like Hell with Flash
Ok, here's the deal. After long use Firefox starts to lag like crazy with Flash. And... It doesn't seem to be a problem with Flash. It's more likely that the browser itself what is causing the issue. After I use Firefox for some time Flash starts lag
-
Can someone please tell Apple to create a "dot" for every event in a given day?
Can someone run this idea up the chain at apple? It would be nice to see what days are busiest from the monthly view. I single dot can represent 1 event or 20, but this is not helpfull. It seems like it would be an easy programming fix to make a "