SetDevInfo error

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

kman
User
Posts: 14
Joined: Thu May 08, 2008 8:15 pm

SetDevInfo error

Post by kman »

PDF Viewer Active X client not working when deployed to customer machine (windows xp).
Works fine on my development (win 2003) and my test machine (windows xp).

I get:
************* Exception Text **************
System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
at PDFXCviewAxLib.IPDFXCview2.SetDevInfo(String Key, String Code)
at AxPDFXCviewAxLib.AxCoPDFXCview.SetDevInfo(String key, String code)
at Synergy_PDF_Viewer.frmsynergypdfviewermain.OpenToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEve

The dlls that are deployed are:
AxInterop.PDFXCviewAxLib.dll
Interop.PDFXCviewAxLib.dll
PDFXCviewAx.dll
pxcview.dll

Here is my open file routine that triggers the error.

Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click

AxCoPDFXCview1.SetDevInfo("myserial", "mykey")

If openFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
StrFile = openFileDialog1.FileName
Else
Exit Sub
End If
Dim iActiveDocID As Integer
Try
AxCoPDFXCview1.OpenDocument(StrFile, "", iActiveDocID, 0)
Catch ex As Exception
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex))
End Try

End Sub
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: SetDevInfo error

Post by Stefan - PDF-XChange »

Hello kman,

When you are deploying your application on the client machine(s), you will need to either:
Run PDFXCview.exe with the "/RegServer" parameter.
Run regsvr32.exe with the "PDFXCviewAx.dll" parameter.

Or if you want to use our SDK in registration free mode - then please make sure to provide the correct manifest file. Check the examples for how to deploy the Viewer AX SDK registration free.

Best,
Stefan