Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: Server threw an exception : getactivedoc()
Conf: (P-PDF) Developers, Msg: 135282
From: mattdarnell
Date: 6/25/2005 05:31 AM

We are writing a vb.net app and are getting the following exception after calling getactivedoc(). We are using interop to control an external instance of acrobat.

System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception.
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Acrobat.CAcroApp.GetActiveDoc()
at mm_fax_manager.frmFaxSorter.unload_fax() in C:\Documents and Settings\pl91621\My Documents\Visual Studio Projects\MM_Fax_Manager Jr\mm_fax_new\frmFaxSorter.vb:line 1534

It is not a consistant problem, but does occur frequently & requires that acrobat be closed and reopened. The pdf's are on a network drive.

We are calling the method so we can close the document, anyone know how to close the active document, with out closing acrobat, another way?

Anyone have any ideas?

Aloha,
Matt

Here is the full text of the dump:

System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception.
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Acrobat.CAcroApp.GetActiveDoc()
at mm_fax_manager.frmFaxSorter.unload_fax() in C:\Documents and Settings\pl91621\My Documents\Visual Studio Projects\MM_Fax_Manager Jr\mm_fax_new\frmFaxSorter.vb:line 1534
at mm_fax_manager.frmFaxSorter.load_first_fax() in C:\Documents and Settings\pl91621\My Documents\Visual Studio Projects\MM_Fax_Manager Jr\mm_fax_new\frmFaxSorter.vb:line 1582
at mm_fax_manager.frmFaxSorter.cmbFolders_SelectedIndexChanged(Object sender, EventArgs e) in C:\Documents and Settings\pl91621\My Documents\Visual Studio Projects\MM_Fax_Manager Jr\mm_fax_new\frmFaxSorter.vb:line 1802
at System.Windows.Forms.ComboBox.onselect_edIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

# ************* Loaded Assemblies ************** mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.DirectoryServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.directoryservices/1.0.5000.0__b03f5f7f11d50a3a/system.directoryservices.dll
----------------------------------------
System.Messaging
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.messaging/1.0.5000.0__b03f5f7f11d50a3a/system.messaging.dll
----------------------------------------
System.ServiceProcess
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.serviceprocess/1.0.5000.0__b03f5f7f11d50a3a/system.serviceprocess.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
mm_fax_manage


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.