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
Crash with PDFXChange Viewer ActiveX under App-V
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
-
- User
- Posts: 8
- Joined: Mon Feb 13, 2012 5:23 pm
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Crash with PDFXChange Viewer ActiveX under App-V
Hi, Felix.
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.
Yes, it is a known issue. Our SDK has two-component model: DLL-stub - on the client side and the EXE - our COM-Server.Is this a known issue related to App-V?
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.
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.
-
- User
- Posts: 8
- Joined: Mon Feb 13, 2012 5:23 pm
Re: Crash with PDFXChange Viewer ActiveX under App-V
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
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
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Crash with PDFXChange Viewer ActiveX under App-V
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.
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.
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.
-
- User
- Posts: 25
- Joined: Wed Feb 10, 2010 11:37 am
Re: Crash with PDFXChange Viewer ActiveX under App-V
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.
I read you did this, is there a walkthrough or some docs about including it in a WPF project?
Thanks in adavance.
-
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: Crash with PDFXChange Viewer ActiveX under App-V
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
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