Options

Clickonce Deployment

superpuzsuperpuz Member Posts: 53
edited 2013-01-03 in NAV Three Tier
I'm trying to use click once deployment on NAV 2013. I've been following instruction in http://msdn.microsoft.com/en-us/library/hh997056%28v=nav.70%29.aspx and fail :(.

Q1: Is it has to be Microsoft Windows SDK for Windows 7 and the .NET Framework 4. that must be installed? where? what if my server is Windows 2008 R2 x64? is it OK installing Windows SDK for Windows Server 2008 and .NET Framework 3.5? The Windows SDK for Windows 7 is failed to install in windows 2008 R2 :(.

I've tried this:
1. Install the Windows SDK for Windows Server 2008 and .NET Framework 3.5 and execute the similar syntax as shown in the guide.
Result = Error when calling the Microsoft.Dynamics.Nav.Client.application

========================================error start====================================
PLATFORM VERSION INFO
Windows : 6.1.7600.0 (Win32NT)
Common Language Runtime : 4.0.30319.17929
System.Deployment.dll : 4.0.30319.17929 built by: FX45RTMREL
clr.dll : 4.0.30319.17929 built by: FX45RTMREL
dfdll.dll : 4.0.30319.17929 built by: FX45RTMREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)

SOURCES
Deployment url : [url=file://192.200.10.23/fileshare/clickonce/Deployment/Microsoft.Dynamics.Nav.Client.application]file://192.200.10.23/fileshare/clickonc ... pplication[/url]
Deployment Provider url : [url=file://192.200.10.23/fileshare/clickonce/Deployment/Microsoft.Dynamics.Nav.Client.application]file://192.200.10.23/fileshare/clickonc ... pplication[/url]
Application url : [url=file://192.200.10.23/fileshare/clickonce/Deployment/ApplicationFiles/Microsoft.Dynamics.Nav.Client.exe.manifest]file://192.200.10.23/fileshare/clickonc ... e.manifest[/url]

IDENTITIES
Deployment Identity : Microsoft Dynamics NAV 2013 - INSERT ANY UNIQUE AND STABLE DEPLOYMENT DIFFERENTIATOR HERE, Version=7.0.0.0, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86

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 \\192.200.10.23\fileshare\clickonce\Deployment\Microsoft.Dynamics.Nav.Client.application resulted in exception. Following failure messages were detected:
+ The customHostSpecified attribute is not supported for Windows Forms applications.


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
* [1/3/2013 3:45:49 PM] : Activation of \\192.200.10.23\fileshare\clickonce\Deployment\Microsoft.Dynamics.Nav.Client.application has started.
* [1/3/2013 3:45:49 PM] : Processing of deployment manifest has successfully completed.
* [1/3/2013 3:45:49 PM] : Installation of the application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [1/3/2013 3:45:49 PM] System.Deployment.Application.DeploymentException (ManifestSemanticValidation)
- The customHostSpecified attribute is not supported for Windows Forms applications.
- Source: System.Deployment
- Stack trace:
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)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

========================================error finish===================================


and the manifest is:
========================================manifest start====================================
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#&quot; xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1">
<asmv1:assemblyIdentity name="Microsoft.Dynamics.Nav.ClickOnceClient" version="7.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
<description asmv2:iconFile="Icon.ico" xmlns="urn:schemas-microsoft-com:asm.v1" />
<application />
<entryPoint>
<co.v1:customHostSpecified />
</entryPoint>

<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentOS>
<osVersionInfo>
<os majorVersion="4" minorVersion="10" buildNumber="0" servicePackMajor="0" />
</osVersionInfo>
</dependentOS>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="Microsoft.ReportViewer.WinForms" version="10.0.0.0" publicKeyToken="b03f5f7f11d50a3a" language="neutral" processorArchitecture="msil" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="System.Windows.Forms.DataVisualization" version="3.5.0.0" publicKeyToken="31bf3856ad364e35" language="neutral" processorArchitecture="msil" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.Patterns.dll" size="71952">
<assemblyIdentity name="Microsoft.Dynamics.Framework.Patterns" version="7.0.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>Q7pCfW3dbyYmhTlsVfKgvnzTujM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.UI.dll" size="1172744">
<assemblyIdentity name="Microsoft.Dynamics.Framework.UI" version="7.0.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>yTtozy82/zcHaceHpPPoXFyKQUk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.UI.Extensibility.dll" size="21800">
<assemblyIdentity name="Microsoft.Dynamics.Framework.UI.Extensibility" version="7.0.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>eOsCyUasUlmbNgrQQ0Nurh5PKCI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.UI.Mapping.dll" size="16664">
<assemblyIdentity name="Microsoft.Dynamics.Framework.UI.Mapping" version="7.0.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>PHaJKd0vK8YyYNGx533VLPXObrU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.UI.Navigation.dll" size="26472">
<assemblyIdentity name="Microsoft.Dynamics.Framework.UI.Navigation" version="1.5.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>gSmcApsRlHlybHh3pdVsISn391o=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.UI.UX2006.dll" size="87320">
<assemblyIdentity name="Microsoft.Dynamics.Framework.UI.UX2006" version="7.0.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>dgy8kpTS/73RZ5aP23HY7Zmd8AU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.UI.UX2006.WinForms.dll" size="119080">
<assemblyIdentity name="Microsoft.Dynamics.Framework.UI.UX2006.WinForms" version="7.0.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>G4yn0lhS2XRaxHXwipyDVjEDeiU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Dynamics.Framework.UI.Windows.dll" size="99096">
<assemblyIdentity name="Microsoft.Dynamics.Framework.UI.Windows" version="7.0.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1&quot; />
<dsig:DigestValue>hWzUWfUtFJONCI58s/7EAjzqzZk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
......
========================================manifest finish====================================


Is there any clue what's gone wrong?

Regards,

Philipus
Regards and Thanks,


Superpuz

Comments

  • Options
    SogSog Member Posts: 1,023
    From what I understand is that .NET framework 4 that has to be installed. 3.5 is insufficient because NAV was released on that version because .NET 3.5 gave performance issues.

    And customHostSpecified is a VSTO only property and should not be in a Windows Forms application.
    Did you upgrade this project from VS08 to vs2010/2012?

    Also, this is a problem related to .NET and not to NAV. Other fora might give you better leads.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Options
    mikhaelmikhael Member Posts: 19
    edited 2017-09-13
    Hi,

    We are facing the same issue: "The customHostSpecified attribute is not supported for Windows Forms applications"

    Is there some solution for this?

    NAV 2017 CU4
    .NET: 4.5.2
    OS: Windows Server 2012 R2

    UPDATE:

    I was following “How Do I Deploying Microsoft Dynamics NAV 2013 R2 Windows Client Using ClickOne” video from youtube and seems that the video gives wrong instructions by not using parameter “–from directory” in mage.exe command. This will corrupt the manifest file (see https://forum.mibuso.com/discussion/65128/clickonce-error-with-nav2015)

    Problem was solved by putting the parameter in mage command
Sign In or Register to comment.