Page 1 of 1

System.Deployment.Application.DeploymentDownloadException

PostPosted: Mon Sep 07, 2015 10:06 pm
by yoda_
Hi Jason,

I'm trying to install this tool but when running the .exe file I get a message saying that the file is not compatible with the Windows version I'm running. My OS is 64-bit Windows 7 Enterprise. When I view the file as a HTML page, I can't submit the request form (JS is activated, IE10).

How can I access the download link?

Thanks!!

Best regards,
Yonatan

Re: Docx4j Helper AddIn - v1 final available

PostPosted: Mon Sep 07, 2015 10:36 pm
by jason
Hi Yonatan

You say "when running the .exe file" and then you talk about some HTML page and the download link, so its not clear to me whether you were able to download the installer or not?

If you can clarify (perhaps with a screenshot?), I'll try to help.

Re: Docx4j Helper AddIn - v1 final available

PostPosted: Thu Sep 10, 2015 6:05 pm
by yoda_
Thanks for you help Jason. Sorry for the poor description. I hope this will give you better information.

1. I download the file http://www.plutext.com/dn/downloads/144 ... 1439981644 and it is saved as "Docx4jHelper-1_0.1439981644". I download it from the link on this page.
2. If I open the downloaded file as is, it's opens in Internet Explorer 10. That's were I get a form in which I need to provide some information to receive a download link.
html-page.png
HTML page
html-page.png (10.62 KiB) Viewed 2015 times

3. If I rename the downloaded file to ".exe" since that's what the file on the download page, I get the 32-bit/64-bit incompatibility issue.
32-64-issue.png
Incompatibility issue
32-64-issue.png (10.95 KiB) Viewed 2015 times


Thanks again!

Regards,
Yonatan

Re: Docx4j Helper AddIn - v1 final available

PostPosted: Thu Sep 10, 2015 10:19 pm
by jason
Sorry you're having problems.

The link in your point 1. should end with just Docx4jHelper-1_0.exe ie without the querystring and the _ga var (i'll check later to see whether this actually affects things)

It should take you straight to the form (no download).

Then after you complete the form, you will be emailed a download link, for Docx4jHelper-1_0.exe

If you still get that 32/64 error, please let me know. The installer is supposed to work for both 32 and 64 bit. It should certainly work on 64 bit Win 7, because that's where it was built and most of the testing done.

Re: Docx4j Helper AddIn - v1 final available

PostPosted: Thu Sep 10, 2015 11:55 pm
by yoda_
Thanks for the help Jason! The issue was that IE10 and our antivirus software at the office wouldn't allow for the link to execute so I could not reach the form. Hitting the link from my home PC in Firefox did the trick.

So I could download and install. But now the issue is that the Docx4jHelper is not showing up in MS Word as a tab and it's not listed under the Add-Ins section from the Options menu. The installer first requested that additional MS stuff would be installed and it requeseted a reboot - we did that. Then we ran the installer again to install the Docx4jHelper. Started MS Word and it will not show up. I've tried removing and re-installing without success. I also tried to add the Docx4jHelper.dll and docx4j.dll files from COM Add-ins, but that will not work either.

The Docx4jHelper is installed under C:\Program Files (x86)\Plutext\Docx4jWordAddIn.

Any ideas on what could be wrong?

Re: Docx4j Helper AddIn - v1 final available

PostPosted: Fri Sep 11, 2015 9:03 am
by jason
In Word's Options > Add-Ins, did you scroll to the bottom and click the "Go..." button next to "Manage: COM Add-ins"?

If you do that, you should see it listed on the next dialogue. Tick it and press OK. (If its not there, you could try the "Add.." button, but I've never had to do that)

After ticking and pressing OK, the new menu should appear. No need to restart Word.

Re: Docx4j Helper AddIn - v1 final available

PostPosted: Fri Sep 11, 2015 10:29 pm
by yoda_
I have tried all your suggested approaches and no luck :( I wanted to add the installed DLL-file manually from the "COM Add-ins" window but none of the files I choose are accepted by MS Word.

If I run the file Docx4jHelper.vsto I get the error message below. Not sure what is means because the file is available in the folder.

Name: Docx4jHelper
From: file:///C:/Program Files (x86)/Plutext/Docx4jWordAddIn/Docx4jHelper.vsto

************** Exception Text **************
System.Deployment.Application.DeploymentDownloadException: Downloading file:///C:/Program Files (x86)/Plutext/Docx4jWordAddIn/Microsoft.Office.Tools.Word.dll did not succeed. ---> System.Net.WebException: Could not find file 'C:\Program Files (x86)\Plutext\Docx4jWordAddIn\Microsoft.Office.Tools.Word.dll'. ---> System.Net.WebException: Could not find file 'C:\Program Files (x86)\Plutext\Docx4jWordAddIn\Microsoft.Office.Tools.Word.dll'. ---> System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\Plutext\Docx4jWordAddIn\Microsoft.Office.Tools.Word.dll'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
--- End of inner exception stack trace ---
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
at System.Net.FileWebRequest.GetResponseCallback(Object state)
--- End of inner exception stack trace ---
at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.FileWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(TimeSpan timeout)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

Re: System.Deployment.Application.DeploymentDownloadExceptio

PostPosted: Wed Sep 16, 2015 3:51 pm
by jason
I suspect your computer is now horribly confused.

Are you able to try the installation on some other machine?

It should be simple:

1. run the installer

2. start Word

If you can't see it when you start Word, go into Word Options > Add-Ins, scroll to the bottom and click the "Go..." button next to "Manage: COM Add-ins". You should see it listed on the next dialogue. Tick it and press OK. After ticking and pressing OK, the new menu should appear. No need to restart Word.

I understand that you know all that already... sorry, I can't think of anything else to suggest right now.

Re: System.Deployment.Application.DeploymentDownloadExceptio

PostPosted: Thu Oct 22, 2015 8:31 pm
by yoda_
So this issue has been resolved. Our IT policy at work requires an IT Admin to install software for us users, and that made this fail (file access permissions I guess). It appears that for this add-on to work, you need to install it as your self. Giving me temporary admin rights for my PC and installing the software as myself did the trick!

Thank you for your efforts Jason!

Re: System.Deployment.Application.DeploymentDownloadExceptio

PostPosted: Mon Nov 02, 2015 11:35 am
by jason
Ahh, yes, the price of having a single installer which works regardless of Office or Windows version, is that it is a per-user installation.

If we were to have per-computer installation, we'd have to have separate installers, either for Office version (32- and 64-bit), or Windows version (32 or 64 bit).

I guess we're getting close the day when we could support 64 bit Windows only.

For more, see https://msdn.microsoft.com/en-us/librar ... eRegisitry or Google "Deploying an Office Solution by Using Windows Installer"