Registrationless activation of PDFXCviewAx doesn't work?

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

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

Post Reply
prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Wed Oct 30, 2013 4:53 pm

Hello,

I've changed PDFXCviewAxLib to the new version 2.5.213.0 to resolve crashes with Windows 8.1.
But after this, it seems that registrationless activation doesn't work in the version. The control only show an icon.
(Found in a remote-application under Windows 2012 Server (not R2)).

Do I have to make changes in app.Manifest for the new version or is your PDFXCviewAx.X.manifest changed but not updated in the SDK distribution?

Greetings
Hans-Peter

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

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Vasyl-Tracker Dev Team » Wed Oct 30, 2013 6:42 pm

Hi, Hans-Peter
Do I have to make changes in app.Manifest for the new version or is your PDFXCviewAx.X.manifest changed but not updated in the SDK distribution?
It is not necessary, you may keep it the same.

The control does not work under Windows 2012 Server (not R2) only or under other platforms also?

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.

User avatar
Roman - Tracker Supp
Site Admin
Posts: 269
Joined: Sun Nov 21, 2004 3:19 pm

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Roman - Tracker Supp » Wed Oct 30, 2013 6:56 pm

[deleted]
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Thu Oct 31, 2013 9:41 am

Hi Vasyl,

I can't test it with other server platforms, because we only have an environment with MS Server 2012 (without R2).
This machine has no PDfX-Viewer installed. On this machine I've replaced our distribution-files and the error occurs.
Users are starting our application via Remote-App.

I've investigated the problem further:
In my builded files, I've exchanged "PDFXCview.exe", "PDFXCviewAx.dll", "resource.dat", "Languages\PDFXVW_De.xml" to the previous version and this works via Remote-App on the server.
I've changed them back to the current version and only the icon is visible (see attached picture).
Addionally changing the interop files "AxInterop.PDFXCviewAxLib.dll", "Interop.PDFXCviewAxLib.dll" to new generated has the same result.
Files from current version 2.5.213.0 don't work, files from version 2.5.190.0 are working.

On another machine (Surface Pro) with a fresh windows 8.0 installation upgraded to 8.1 (without installed PDFX-Viewer) locally logged in (the files are copied from the MS 2012 Server to the temp-folder) the problem does not exist.
Here I can show the PDF with version 2.5.213.0 (without crash). Even if I'm logged via Remote-Desktop on the machine, it works without problem.

After this, I copied the files from this machine back to the MS 2012 Server in a temp-folder and tried it per Remote-Desktop on the server - and now it gets strange: it works.
The only difference is the path in which the files are.
So I've copied the folder with the files to the same path in which the not working files are and the error is there (connected via remote desktop to the server). Starting our application in this folder with admin-rights does not change the behaviour.
The path in which the new version doesn't work on this MS Server 2012 is:
C:\Users\USERNAME\AppData\Roaming\prosozial\PsStarter\Programme\proso 21.Entwicklung.Produktivsystem
After that, in this folder I change the PDFX-Viewer files to the older version and it works.

I know it's confusing, but to me, it seems that there could be a problem on a MS Server 2012 in combination with the path an registrationless activation?

I'll try to investigate it a little bit further to exclude sideeffects, but perhaps the current information brings you to some ideas.


Best regards
Hans-Peter
Attachments
PdfViewerIcon.zip
(4.88 KiB) Downloaded 80 times

prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Thu Oct 31, 2013 1:42 pm

Hello again,

I've verified the behaviour on the one MS Server 2012.

If the program-folder is in a folder under the user-profile (tried in Appdata, Roaming, etc.) the PDF is not shown.
Even if I copy it in another users folder and start ist from here, the PDF is not shown.
If the program-folder lies on c:\temp or c:\, the pdf is shown.

Iv'e tried to verify this on another MS Server 2012 (without R2) - but here it works.

The difference between the two servers is:
The first server is used as terminal/RDP-App server. And on this server, the user-folder is mapped via VHD.
Could this cause the problem?

But on the other hand:
The version v2.5.190.0 works on this machine. There must be changes in PDFX-Viewer v2.5.213.0 which lead to the behaviour.

Greetings
Hans-Peter

User avatar
Roman - Tracker Supp
Site Admin
Posts: 269
Joined: Sun Nov 21, 2004 3:19 pm

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Roman - Tracker Supp » Tue Nov 05, 2013 5:24 pm

Hello Hans-Peter,

Is it possible to arrange interactive remote debug session on the problem server?
For example we could use TeamViewer to access the server. The only requirement is internet access from the machine - there is no need for public IP, port forwarding, disabling firewall or so.

However if this is not an option, we can make other debugging approaches.
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Wed Nov 06, 2013 2:06 pm

Hello,

I've asked our admins, but there is no way to get teamviewer on the or other servers to evaluate this...

We installed windows server 2012 R2 as terminalserver on another machine in our domain and I could verify the problem on this machine. I'm shure, that userprofiles mounted in vhd (UPD) have to do with this, because we could manage it to change my profile on the server from UPD to local profile and the error is gone.

To me it seems, that the problem is only in mixed domains (Server 2008 Domain, Server 2012 Terminalserver), because tested in another serverfarm with only windows 2012 server (Domainserver/terminalserver) all is ok.

I found a blog-entry which shows other problems with UPD in mixed domains (incompatible SMB?).
http://social.technet.microsoft.com/For ... ing-logoff

Nevertheless there must be a change between version 2.5.190.0 and 2.5.213.0.

Greetings
Hans-Peter

User avatar
Roman - Tracker Supp
Site Admin
Posts: 269
Joined: Sun Nov 21, 2004 3:19 pm

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Roman - Tracker Supp » Fri Nov 08, 2013 6:03 pm

Hello Hans-Peter,

I have setup the configuration you described (WinServer 2012 as a terminal server (with UPD enabled), WinServer 2008 Std as a DC/AD) but could not reproduce the issue - regless activation works even in directories within UPD-based user profile.

Could you please prepare a standalone set of virtual machines (TS and DC) that is similar to your real setup enough to reproduce the issue?
Then we could download those VM and investigate here locally. VM engine might be VMware, VirtualBox or MS Virtual PC.
If you cannot do this, we will have to ask you to run a log-enabed version of the PDF-X AX and send us collected logs, but it would probably be a slow way to debug and would require many iterations.
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Mon Nov 11, 2013 1:07 pm

Hello Roman,

sorry, but we can't give you VMs to reproduce the problem. The problem occurs in our internal productive environment.

I would try it with your log-enabled version of PDFXCviewAx if it helps.
I hope it consumes not so much time to create the logs and perhaps it helps to find the problem.

Greetings
Hans-Peter

User avatar
Roman - Tracker Supp
Site Admin
Posts: 269
Joined: Sun Nov 21, 2004 3:19 pm

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Roman - Tracker Supp » Thu Nov 14, 2013 6:18 pm

Hello Hans-Peter,

Please try to reproduce the problem with this test set (zip includes 32- and 64-bit builds). Just run OpenDocument.exe and open a pdf file with it).
if you get a crash please make a memory dump of the failed process (you can use Task manager for this) and send the dump file to us.

If you could not reproduce (I have already applied a 'fix candidate' to the ActiveX) then please try your application with the ActiveX (PDFXCviewAx.dll) and the server (PDFXCview.exe) from this test set (use the ActiveX of the same 'bitness' as your app).
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Fri Nov 15, 2013 4:48 pm

Hello Roman,

I've tested your application and on the first try, I couldn't reproduce the problem. But after exchanging the control in our program, the error was there again.

After a lot of trials and time I have found the reason for the behaviour. If a program is in a sub-folder of the via VHD mountet User-Profile-folder and the foldername has a space or point in his name, the problem is there. If there is no point or space in the subfoldername the problem is gone... With this info I could reproduce it even with your test-application.

Example:
c:\users\username\pxv_clickonce_issue => works
c:\users\username\pxv clickonce_issue => does not work

I've attached a screenshot of my terminalserver remotesession where 2 programs are running from different named folders.
Your older version v2.5.190.0 definitly has not this problem (see second Screenshot).

I hope this helps to find the problem (Missing quotes?).

Greetings
Hans-Peter
Attachments
Screenshot_OpenDocument Demo.zip
(402.31 KiB) Downloaded 79 times

User avatar
Roman - Tracker Supp
Site Admin
Posts: 269
Joined: Sun Nov 21, 2004 3:19 pm

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Roman - Tracker Supp » Mon Nov 18, 2013 6:00 pm

Hello Hans-Peter,

Please try again (the same download link, the zip file has been updated).
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Wed Nov 20, 2013 12:52 pm

Hello Roman,

I've tested it with your new version and now it works :D

What do you have changed and what was the problem?
When can I get an official version?

Thank you very much for your patience!

Greetings
Hans-Peter

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13607
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Tracker Supp-Stefan » Wed Nov 20, 2013 12:55 pm

Hi Hans-Peter,

Glad to hear it's working now!
The fix will be included in the next official build and in the mean time you can use the custom build Roman has provided.

Regards,
Stefan

User avatar
Roman - Tracker Supp
Site Admin
Posts: 269
Joined: Sun Nov 21, 2004 3:19 pm

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Roman - Tracker Supp » Wed Nov 20, 2013 1:23 pm

Hello Hans-Peter,
Sorry for so long investigation period. Partly it is for the highly specific repro conditions that was rather confusing to me. :)
The problem actually was that a WinAPI (GetShortPathName) does not work as expected under these conditions.
We have changed our code so that this API is not in use anymore in this case.
When can I get an official version?
The binaries from the latest test set are built without debug info and with all optimizations so you can use them in your product until the next official build of the PDF-X Viewer.

Thank you very much for your valuable help and patience.
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

prosozial_schmitt
User
Posts: 52
Joined: Tue Dec 28, 2004 9:49 am

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by prosozial_schmitt » Wed Nov 20, 2013 1:57 pm

Hi Roman,

yes - this behaviour was really "something strange"...
But "We've got it".

You have gained a new title "Bugbuster"
:wink:

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13607
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Registrationless activation of PDFXCviewAx doesn't work?

Post by Tracker Supp-Stefan » Wed Nov 20, 2013 2:01 pm

;)

Post Reply