Crash with PDFXChange Viewer ActiveX under App-V

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

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

normfall gmbh
User
Posts: 8
Joined: Mon Feb 13, 2012 5:23 pm

Crash with PDFXChange Viewer ActiveX under App-V

Post by normfall gmbh »

Hi there,

we use the PDF-XChange Viewer ActiveX control in our WPF application via <WindowsFormsHost>...</WindowsFormsHost>. This works quite well even in virtualization scenarios like Terminal Services, Remote Desktop Services and Citrix XenApp.

But when used under App-V (http://www.microsoft.com/en-us/windows/ ... app-v.aspx), the control seems to crash when instantiated.

Is this a known issue related to App-V?

What can/should we do to resolve this? Any help is appreciated.

Thanks
Felix
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Crash with PDFXChange Viewer ActiveX under App-V

Post by Vasyl-Tracker Dev Team »

Hi, Felix.
Is this a known issue related to App-V?
Yes, it is a known issue. Our SDK has two-component model: DLL-stub - on the client side and the EXE - our COM-Server.
When your program starts then our DLL-stub attempts to create COM-Server but has failed with a "Class not registered" error. It looks like App-V places your app into something like a 'sandbox' but without the correct COM-registration for our COM-Server. You may try to use these possible workarounds:

A. at the start of your app - launch our COM-server .exe to register itself inside the 'sandbox': PDFXCview.exe /RegServer. It will register our COM-server objects in the sandbox's registry snapshot.
or
B. use Click-Once(Registrationless) method. It is described in our SDK-help.

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
normfall gmbh
User
Posts: 8
Joined: Mon Feb 13, 2012 5:23 pm

Re: Crash with PDFXChange Viewer ActiveX under App-V

Post by normfall gmbh »

Hi there,

thanks for those hints. We tried solution A (launching COM server with /regserver at startup of our application), but with no success. We still get the same error when our app tries to instantiate the Viewer Control:

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

We launch the COM server in the main()-method of our app (Process.Start(....)).

Any ideas?

Thanks
Felix
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Crash with PDFXChange Viewer ActiveX under App-V

Post by Vasyl-Tracker Dev Team »

Hi, Felix.

Currently we have no ideas how to solve COM-server registration issue under App-V.. :(
Please try other way:
B. use Click-Once(Registrationless) method. It is described in our SDK-help.

Best
Regards.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
quietstorm
User
Posts: 25
Joined: Wed Feb 10, 2010 11:37 am

Re: Crash with PDFXChange Viewer ActiveX under App-V

Post by quietstorm »

Hi, I'm a newbie on .NET and Visual Studio... I'm trying to understand how to include a PDF-XCView control into a WPF application, setting properties and handling events.
I read you did this, is there a walkthrough or some docs about including it in a WPF project?

Thanks in adavance.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Crash with PDFXChange Viewer ActiveX under App-V

Post by Tracker Supp-Stefan »

Hello Quietstorm,

Please take a look at the
C:\Program Files\Tracker Software\PDF-XChange Viewer SDK\Examples\Registration-Free COM
sample and the Readme.txt file inside.

Cheers,
Stefan