Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Error when trying to install ClickOnce

Posted on by 460

I am trying to follow ClickOne mass instalation video from 4BzSoftware link below:

(https://community.dynamics.com/nav/b/4bzsoftwaresnavblog/archive/2017/07/06/clickonce-mass-windows-client-installation-and-auto-update)

My problem is that after I try to install the ClickOne from the HTML page (See pic1) i get an error. Can anyone try to give me a hint how to solve this error?

Pic 1:

2727.pic1.png

Error Text:

***************************************************************************

INFO ZUR PLATTFORMVERSION
Windows : 6.2.9200.0 (Win32NT)
Common Language Runtime : 4.0.30319.36366
System.Deployment.dll : 4.0.30319.36366 built by: FX452RTMLDR
clr.dll : 4.0.30319.36366 built by: FX452RTMLDR
dfdll.dll : 4.0.30319.36366 built by: FX452RTMLDR
dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)

QUELLEN
Bereitstellungs-URL : file:///C:/inetpub/wwwroot/ClickOnceNAV90/ProductionDeployment.application

IDENTITÄTEN
Bereitstellungsidentität : ProductionDeployment.app, Version=9.0.48268.0, Culture=neutral, PublicKeyToken=135270715156671f, processorArchitecture=x86

ZUSAMMENFASSUNG FÜR ANWENDUNG
* Installierbare Anwendung.

FEHLERZUSAMMENFASSUNG
Es folgt eine Zusammenfassung der Fehler. Details zu diesen Fehlern werden später im Protokoll aufgelistet.
* Die Aktivierung von C:\inetpub\wwwroot\ClickOnceNAV90\ProductionDeployment.application führte zu einer Ausnahme. Folgende Fehlermeldungen wurden entdeckt:
+ Ausnahme beim Lesen des Manifests aus 'file:///C:/inetpub/wwwroot/ClickOnceNAV90/ProductionFiles/NAV90.Production.exe.manifest': Das Manifest ist möglicherweise ungültig, oder die Datei konnte nicht geöffnet werden.
+ Das Anwendungsmanifest ist semantisch ungültig.
+ Die angegebene <entryPoint>-Spezifikation ist ungültig. Überprüfen Sie, ob der Pfad zum Einstiegspunkt wohlgeformt und der Einstiegspunkt in der Bereitstellung vorhanden ist.

FEHLERZUSAMMENFASSUNG FÜR DIE SPEICHERTRANSAKTION DER KOMPONENTE
Es wurde kein Transaktionsfehler festgestellt.

WARNUNGEN
Während dieses Vorgangs gab es keine Warnungen.

FORTSCHRITTSSTATUS DES VORGANGS
* [06.07.2017 11:19:41] : Die Aktivierung von C:\inetpub\wwwroot\ClickOnceNAV90\ProductionDeployment.application wurde gestartet.
* [06.07.2017 11:19:41] : Das Verarbeiten des Bereitstellungsmanifestes wurde erfolgreich abgeschlossen.
* [06.07.2017 11:19:41] : Die Installation der Anwendung wurde gestartet.

FEHLERDETAILS
Folgende Fehler wurden bei diesem Vorgang entdeckt.
* [06.07.2017 11:19:41] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Ausnahme beim Lesen des Manifests aus 'file:///C:/inetpub/wwwroot/ClickOnceNAV90/ProductionFiles/NAV90.Production.exe.manifest': Das Manifest ist möglicherweise ungültig, oder die Datei konnte nicht geöffnet werden.
- Quelle: System.Deployment
- Stapelüberwachung:
bei System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
bei System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
bei System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
bei System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
bei System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
bei System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
bei System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Interne Ausnahme ---
System.Deployment.Application.InvalidDeploymentException (ManifestSemanticValidation)
- Das Anwendungsmanifest ist semantisch ungültig.
- Quelle: System.Deployment
- Stapelüberwachung:
bei System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForApplicationRole()
bei System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
--- Interne Ausnahme ---
System.Deployment.Application.InvalidDeploymentException (InvalidManifest)
- Die angegebene <entryPoint>-Spezifikation ist ungültig. Überprüfen Sie, ob der Pfad zum Einstiegspunkt wohlgeformt und der Einstiegspunkt in der Bereitstellung vorhanden ist.
- Quelle: System.Deployment
- Stapelüberwachung:
bei System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForApplicationRole()

DETAILS ZUR SPEICHERTRANSAKTION DER KOMPONENTE
Es sind keine Transaktionsinformationen verfügbar.

******************************************************************************

*This post is locked for comments

  • M.Zayed Profile Picture
    M.Zayed 460 on at
    RE: Error when trying to install ClickOnce

    Thanks alot Marcell!

    Your script is really powerful and easy to understand. Have to say for someone with little experience with Power shell it wont be a problem for him to understand your script!

    In a short time i was able to solve the issues with ClickOnce :)

    Ps: For all other users, Take a look at Marcel blog for more info. its really helpful.

    Thanks Marcel one more time for your help.

  • Verified answer
    Marcellus Profile Picture
    Marcellus 2,735 on at
    RE: Error when trying to install ClickOnce

    Hi,

    I posted my PowerShell script on my blog: https://marcellusnav.wordpress.com/2017/07/10/my-nav-clickonce-deployment-script/

    I also shared it on GitHub: https://github.com/marcellusnav/Marshell/tree/master/Click%20Once

    You need to get the New-NAVClickOnceDeploymentOnIIS.ps1 open the PowerShell ISE as admin and execute it with your own parameters like this:

    . "C:\Deployment\New-NAVClickOnceDeployment.ps1"
    
    New-NAVClickOnceDeploymentOnIIS -NavVersion 90 `
                                    -DeploymentFolder 'C:\inetpub\wwwroot\ClickOnceDemo' `
                                    -DeploymentURL 'http://localhost/ClickOnceDemo' `
                                    -LogFile 'C:\Deployment\log.txt' `
                                    -Mage "C:\Deployment\mage.exe" `
                                    -SigningPfxFile "C:\Deployment\ClickOnceSignature.pfx" `
                                    -SigningPfxFilePassword 'clickoncesignaturepassword' `
                                    -ClientUserSettingsFile "C:\Deployment\ClientUserSettings.config" `
                                    -WebConfigFile "C:\Deployment\web.config" `
                                    -PartnerName 'YourCompanyName' `
                                    -CustomerName 'YourCustomerName' `
                                    -ProductName 'NAV 2016 Production'


  • M.Zayed Profile Picture
    M.Zayed 460 on at
    RE: Error when trying to install ClickOnce

    Hi Marcell,
    Thanks a lot for taking the time to help me. I made my folder structure according to the video from 4BzSoftware link below:
    (community.dynamics.com/.../clickonce-mass-windows-client-installation-and-auto-update).

    If you open the II-S manager you will see Setup- folder (See Pic below). Since I had some doubts that Port 1200 was not workign i deactivated the Firewall Completely on the server.

    3301.pic4.png

    Now here is the Folder structures where the installation file are:

    1234.Pic-2.png

    The full manifest paths look like this:

    4848.pic-3.png

    This is the current error which I get with this settings:

    3301.pic4.png

    To be honest I tried different tips regarding solving this problem. but unfortunately till now i had no luck in solving it :(

  • Verified answer
    Marcellus Profile Picture
    Marcellus 2,735 on at
    RE: Error when trying to install ClickOnce

    Hi M.Zayed,

    Can you share a screenshot of your folder structure within the ClickOnceNAV90 folder?

    Here is an example from a demo machine:

    ClickOnceDeploymentfolder.png

    Looking at your error message, you are trying to access the deployment manifest via this URL: http://172.17.8.56:1200/Setup/ProductionDeployment.application

    On one of your previous screenshots I've seen that the your deployment folder is ClickOnceNAV90, it looks like that your URL should be http://172.17.8.56:1200/ClickOnceNAV90/Setup/ProductionDeployment.application

    Also, could you please check if you have enabled port 1200 on your server?

  • M.Zayed Profile Picture
    M.Zayed 460 on at
    RE: Error when trying to install ClickOnce

    Hi Marcell,

    This is the value:

    *************************

       <dependentAssembly dependencyType="install" codebase="ProductionFiles\NAV90.Production.exe.manifest" size="59993">

         <assemblyIdentity name="NAV90.Production.exe" version="9.0.48316.0" publicKeyToken="135270715156671f" language="neutral" processorArchitecture="x86" type="win32" />

         <hash>

           <dsig:Transforms>

             <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />

           </dsig:Transforms>

           <dsig:DigestMethod Algorithm="www.w3.org/.../xmldsig; />

           <dsig:DigestValue>RMdCeofxltnoCm5y22pc7aF0Ys4=</dsig:DigestValue>

         </hash>

       </dependentAssembly>

    *************************

    But if you took a look at the text file in attachment you will see that the current error is network connection. sorry for the German text, if you needed any translation plz tell me

    .4628.pic5.png

    NFW7SIPZ.txt

  • Marcellus Profile Picture
    Marcellus 2,735 on at
    RE: Error when trying to install ClickOnce

    Hi M.Zayed,

    In your deployment manifest (Microsoft.Dynamics.Nav.Client.application) what is the value of the codebase attribute in the in dependentAssembly?

    <dependentAssembly dependencyType="install" 
    codebase="navserver.cloudapp.net/.../Microsoft.Dynamics.Nav.Client.exe.manifest" 
    size="45204">

    Is it this? "file:///C:/inetpub/wwwroot/ClickOnceNAV90/ProductionDeployment.application"


  • RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Error when trying to install ClickOnce

    You will keep getting this Manifest error while configuring ClickOnce if any step you did wrong, so if you have given ample of time in sorting out this issue and still unable then normally what I do is I start from beginning and re execute all processes.

    Something important that I captured while doing was - 

    1. Port no should be public.

    2. Use IP instead of server names.

    3. Manifest must contains all the files that you have made.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans