Options

Deploy Clickonce Non Azure

soetiesoetie Member Posts: 61
Hi there,

im struggling with deploying the clickonce client on my NAV 2017 enviroment.
I have searched for a solution but cant find it directly.
Sometimes the app wont download.
Sometimes the app wont start, and crashed.

I have found serveral sites and scripts, but most of them are based on Azure.

Is there some on who is having scripts to set this up easily with powershell?

Thanks

Answers

  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    Whats the issue you are facing?
  • Options
    soetiesoetie Member Posts: 61
    Hi

    followed thiss manual:
    https://docs.microsoft.com/en-us/dynamics-nav/deploying-microsoft-dynamics-nav-using-clickonce

    but getting message cant download the application.

    Also looking for a easier way to install this. Such as powershell script.
    Setup a few prereg. and run..

    I will try it again and let you know exact error
  • Options
    soetiesoetie Member Posts: 61
    Hi, i have tried it but cant get it to work.
    I have found a powershell script.. it does work with the cronus demo environment but when i install an addon and run the script again it will fail. (instance is on navuserpassword combination and has a self signed certificate for test:

    Having 2 issues.
    1 i have to change manuallly the location of the download in this file:
    C:\inetpub\wwwroot\http\addon\Deployment\Microsoft.Dynamics.Nav.Client.application
    (the file comes standard without the http section, so download cannot be found. When it put http in the application file it will download. (default without addon)

    2. when i install my addon and run the script again, im getting this error log:
    application is inproperly formatted

    PLATFORM VERSION INFO
    Windows : 6.2.9200.0 (Win32NT)
    Common Language Runtime : 4.0.30319.42000
    System.Deployment.dll : 4.6.1087.0 built by: NETFXREL4STAGE
    clr.dll : 4.6.1087.0 built by: NETFXREL4STAGE
    dfdll.dll : 4.6.1087.0 built by: NETFXREL4STAGE
    dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)

    SOURCES
    Deployment url : http://localhost/http/addon/Deployment/Microsoft.Dynamics.Nav.Client.application
    Server : Microsoft-IIS/8.5
    X-Powered-By : ASP.NET
    Deployment Provider url : http://dynamics01/http/addon/Deployment/Microsoft.Dynamics.Nav.Client.application
    Server : Microsoft-IIS/8.5
    X-Powered-By : ASP.NET

    IDENTITIES
    Deployment Identity : Dynamics01 ClickOnce addon, Version=10.18.5.3, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil

    APPLICATION SUMMARY
    * Installable application.

    ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of http://localhost/http/addon/Deployment/Microsoft.Dynamics.Nav.Client.application resulted in exception. Following failure messages were detected:
    + Exception reading manifest from http://dynamics01/http/addon/Deployment/ApplicationFiles/Microsoft.Dynamics.Nav.Client.exe.manifest: the manifest may not be valid or the file could not be opened.
    + Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
    -HRESULT: 0x80070c81
    Start line: 0
    Start column: 0
    Host file:
    + Exception from HRESULT: 0x80070C81

    COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

    WARNINGS
    * The manifest for this application does not have a signature. Signature validation will be ignored.
    * The manifest for this application does not have a signature. Signature validation will be ignored.

    OPERATION PROGRESS STATUS
    * [3-5-2018 11:53:04] : Activation of http://localhost/http/addon/Deployment/Microsoft.Dynamics.Nav.Client.application has started.
    * [3-5-2018 11:53:04] : Processing of deployment manifest has successfully completed.
    * [3-5-2018 11:53:04] : Installation of the application has started.

    ERROR DETAILS
    Following errors were detected during this operation.
    * [3-5-2018 11:53:04] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
    - Exception reading manifest from http://dynamics01/http/addon/Deployment/ApplicationFiles/Microsoft.Dynamics.Nav.Client.exe.manifest: the manifest may not be valid or the file could not be opened.
    - Source: System.Deployment
    - Stack trace:
    at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
    at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
    at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
    at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
    at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    --- Inner Exception ---
    System.Deployment.Application.InvalidDeploymentException (ManifestParse)
    - Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
    -HRESULT: 0x80070c81
    Start line: 0
    Start column: 0
    Host file:
    - Source: System.Deployment
    - Stack trace:
    at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)
    at System.Deployment.Application.Manifest.AssemblyManifest..ctor(FileStream fileStream)
    at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
    --- Inner Exception ---
    System.Runtime.InteropServices.COMException
    - Exception from HRESULT: 0x80070C81
    - Source: System.Deployment
    - Stack trace:
    at System.Deployment.Internal.Isolation.IsolationInterop.CreateCMSFromXml(Byte[] buffer, UInt32 bufferSize, IManifestParseErrorCallback Callback, Guid& riid)
    at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)

    COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.


    \webconfig looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <security>
    <requestFiltering>
    <fileExtensions>
    <remove fileExtension=".config" />
    </fileExtensions>
    </requestFiltering>
    </security>
    <staticContent>
    <mimeMap fileExtension=".config" mimeType="application/octet-stream" />
    </staticContent>
    </system.webServer>
    </configuration>

  • Options
    soetiesoetie Member Posts: 61
    Anybody?

    Errordetails

    * [5-7-2018 15:38:59] System.Deployment.Application.DeploymentDownloadException (Onbekend subtype)
    - Downloaden van http://xxxx/PROD/Deployment/Microsoft.Dynamics.Nav.Client.application is mislukt.
    - Bron: System.Deployment
    - Stack-tracering:
    bij System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
    bij System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
    bij System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
    bij System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
    bij System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
    bij System.Deployment.Application.DownloadManager.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
    bij System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
    bij System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
    bij System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    --- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden ---
    bij System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    bij System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    bij System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    --- Ingesloten uitzondering ---
    System.Net.WebException
    - De externe server heeft een fout geretourneerd: (404) Niet gevonden.
    - Bron: System
    - Stack-tracering:
    bij System.Net.HttpWebRequest.GetResponse()
    bij System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

    TRANSACTIEDETAILS ONDERDELENARCHIEF
    Er is geen transactie-informatie beschikbaar.
  • Options
    RemkoDRemkoD Member Posts: 100
    I would expect that the website for the click once deployment couldn't access the RTC client package from the file location (System: 404 not found). I expect a fault in the path to the package or in the security settings on the file/share. The application pool used for the click once website should be able to read the package. (assuming the website hands over the package to the user, maybe the websites directs the user directly to the package, i don't know).
  • Options
    soetiesoetie Member Posts: 61
    Hi, Thanks.. still cant exactly find what is going wrong. Can download the files manually.. anybody else have some tips? Or script to get it working :smile:
Sign In or Register to comment.