Clickonce file association

K

Ken Lemieux

I'm having difficulty implementing a Clickonce deployment with file
association functionality working. Would someone be willing to comment on
this issue?

Below is are the details of the error encountered when trying to install the
application.

PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.1433
System.Deployment.dll : 2.0.50727.1433 (REDBITS.050727-1400)
mscorwks.dll : 2.0.50727.1433 (REDBITS.050727-1400)
dfdll.dll : 2.0.50727.1433 (REDBITS.050727-1400)
dfshim.dll : 2.0.50727.1433 (REDBITS.050727-1400)

SOURCES
Deployment url :
file:///G:/Eng-Coders/Evaluation/Training/WeCan/WecanAlpha.application
Deployment Provider url :
file://galaxy/engineering/Eng-Coders/Evaluation/Training/WeCan/WecanAlpha.application

IDENTITIES
Deployment Identity : WecanAlpha.application, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=dde2dc24be40f2e9, 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
G:\Eng-Coders\Evaluation\Training\WeCan\WecanAlpha.application resulted in
exception. Following failure messages were detected:
+ Exception reading manifest from
file://galaxy/engineering/Eng-Coders/Evaluation/Training/WeCan/Application%20Files/WecanAlpha_1_0_0_0/WecanAlpha.exe.manifest:
the manifest may not be valid or the file could not be opened.
+ Application manifest is not semantically valid.
+ File association default icon "wecan32.ico" must be listed as a
non-optional <file> element.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [12/12/2007 12:02:21 PM] : Activation of
G:\Eng-Coders\Evaluation\Training\WeCan\WecanAlpha.application has started.
* [12/12/2007 12:02:21 PM] : Processing of deployment manifest has
successfully completed.
* [12/12/2007 12:02:21 PM] : Installation of the application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [12/12/2007 12:02:21 PM]
System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from
file://galaxy/engineering/Eng-Coders/Evaluation/Training/WeCan/Application%20Files/WecanAlpha_1_0_0_0/WecanAlpha.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)
at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException
(ManifestSemanticValidation)
- Application manifest is not semantically valid.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForApplicationRole()
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemantics(ManifestType manifestType)
at System.Deployment.Application.ManifestReader.FromDocument(String
localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException (InvalidManifest)
- File association default icon "wecan32.ico" must be listed as a
non-optional <file> element.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForApplicationRole()

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.


Below is the application manifest.

<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1
assembly.adaptive.xsd" manifestVersion="1.0"
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
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">
<fileAssociation xmlns="urn:schemas-microsoft-com:clickonce.v1"
extension=".wcn" description="WeCan Bar" progid="WeCan Bar.Configuration"
defaultIcon="wecan32.ico" />
<asmv1:assemblyIdentity name="WecanAlpha.exe" version="1.0.0.0"
publicKeyToken="dde2dc24be40f2e9" language="neutral"
processorArchitecture="msil" type="win32" />
<description asmv2:iconFile="Properties\Resources\wecan32.ico"
xmlns="urn:schemas-microsoft-com:asm.v1" />
<application />
<entryPoint>
<assemblyIdentity name="WecanAlpha" version="4.0.97.0"
publicKeyToken="90075E4CE1B80FB9" language="neutral"
processorArchitecture="msil" />
<commandLine file="WecanAlpha.exe" parameters="" />
</entryPoint>
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet class="System.Security.PermissionSet" version="1"
Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
</security>
</trustInfo>
<dependency>
<dependentOS>
<osVersionInfo>
<os majorVersion="5" minorVersion="1" buildNumber="2600"
servicePackMajor="0" />
</osVersionInfo>
</dependentOS>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite"
allowDelayedBinding="true">
<assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime"
version="2.0.50727.0" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite"
allowDelayedBinding="true">
<assemblyIdentity name="System.Core" version="3.5.0.0"
publicKeyToken="b77a5c561934e089" language="neutral"
processorArchitecture="msil" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite"
allowDelayedBinding="true">
<assemblyIdentity name="WindowsBase" version="3.0.0.0"
publicKeyToken="31bf3856ad364e35" language="neutral"
processorArchitecture="msil" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="Buttons.dll" size="139264">
<assemblyIdentity name="Buttons" version="4.0.50.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>v0p5iXRsOxYj2grf3+8KTIY3kJM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="CableInfo.dll" size="57344">
<assemblyIdentity name="CableInfo" version="4.0.29.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>iqrmeb39ifORLcecZEdslOI20jA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="CustomerInfo.dll" size="49152">
<assemblyIdentity name="CustomerInfo" version="4.0.30.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>iE9Ty3AZmf9Ft3gSV0BxLs4tXpQ=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="Docking.dll" size="413696">
<assemblyIdentity name="Docking" version="4.0.30.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>HRHHW7Yoc18qCKtWou3Rw1kD9X4=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="FlashPatterns.dll" size="253952">
<assemblyIdentity name="FlashPatterns" version="4.0.46.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>aOhO/LbNR4kCdjbJ8pvdX8qPY+c=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="ICSharpCode.SharpZipLib.dll" size="176128">
<assemblyIdentity name="ICSharpCode.SharpZipLib" version="0.85.1.271"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>NvPFuLBCMl1WTYmovwaoOCBZGFI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="LightBar.dll" size="507904">
<assemblyIdentity name="LightBar" version="4.0.85.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>/ZJiu5Wf3u0bLGdxJpc/8+yHqRw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="LightHead.dll" size="466944">
<assemblyIdentity name="LightHead" version="4.0.57.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>nVeA7OP2YVVaqCMdRIbH5p0G+zY=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="LightHeadDrivers.dll" size="97792">
<assemblyIdentity name="LightHeadDrivers" version="4.0.45.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>qZKQVDuVkMK8Te5JZ8eFjhXLjPU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="MountingBrackets.dll" size="188416">
<assemblyIdentity name="MountingBrackets" version="4.0.35.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>haLaFNnopBJF9vOTWbx8NNVScEE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="Options.dll" size="233472">
<assemblyIdentity name="Options" version="4.0.49.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>sUhWPsEqSF90jW8o1XLSPqBHeQc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="PrintEngine.dll" size="36864">
<assemblyIdentity name="PrintEngine" version="4.0.33.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>YK/hbTCc4EZvNw4m4qkClGtYbZo=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="Protocols.dll" size="344064">
<assemblyIdentity name="Protocols" version="4.0.83.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>h0MU82KEY68aODR7xaZPer9QZrg=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="Sections.dll" size="229376">
<assemblyIdentity name="Sections" version="4.0.41.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>D830nX7eAgEMbjImkpFf4PGMZoo=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="SharedVirtualObjects.dll" size="75264">
<assemblyIdentity name="SharedVirtualObjects" version="4.0.35.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>DusuoUK0vDeiQBtxG++/uP8w2QM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="Utilities.dll" size="110592">
<assemblyIdentity name="Utilities" version="4.0.46.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>3wyMEl+nGgfuU96u+nbYTZXVal4=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="WecanAlpha.exe" size="720896">
<assemblyIdentity name="WecanAlpha" version="4.0.97.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>UpwFYX++EI2No4xuqrOOmuJabtM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="Whelen.dll" size="40960">
<assemblyIdentity name="Whelen" version="4.0.35.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>q2eudxHKn3/L+8fFwonbA/sKfms=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="WizardSettings.dll" size="94208">
<assemblyIdentity name="WizardSettings" version="4.0.35.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>UhD2opiU5kLSoVGQJJlqycSZNPE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true"
codebase="XPPanel.dll" size="114688">
<assemblyIdentity name="XPPanel" version="4.0.29.0"
publicKeyToken="90075E4CE1B80FB9" 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" />
<dsig:DigestValue>e6XbEytSGGqdyUYwpm2F1mJPIOE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<file name="Properties\Resources\LightBarSmall.png" size="4863">
<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" />
<dsig:DigestValue>p/EFcIjN0uQIkPYuP6AKi/fe+8E=</dsig:DigestValue>
</hash>
</file>
<file name="Properties\Resources\wecan32.ico"
writeableType="applicationData" size="3262" optional="false">
<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" />
<dsig:DigestValue>hKQC+HwduEy3n7PERz4GD3tPgME=</dsig:DigestValue>
</hash>
</file>
<file name="Wecan Help.chm" size="1479286">
<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" />
<dsig:DigestValue>FJZBbmWK+gIMXocXsrjPaY4s3xo=</dsig:DigestValue>
</hash>
</file>
<file name="WecanAlpha.exe.config" size="939">
<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" />
<dsig:DigestValue>bs7XPZsdJAVkYxhGxINs+6dVdXw=</dsig:DigestValue>
</hash>
</file>
<publisherIdentity name="CN=Whelen Engineering"
issuerKeyHash="8a2ccb35ddff830b9a56d47f26af8bb5cc63fb0d" /><Signature
Id="StrongNameSignature"
xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference
URI=""><Transforms><Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"
/><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"
/></Transforms><DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"
/><DigestValue>uNzHUxg2DJjWDupVKw1kbDMr0WM=</DigestValue></Reference></SignedInfo><SignatureValue>QkCnlHfhJL+Et1JUw0pgnKkYhlTpewWEvrcmDCjoGCoL1IND38QCVgBvns5MhmPOmQzFpO1y/H5gWBOJhiyZMw==</SignatureValue><KeyInfo
Id="StrongNameKeyInfo"><KeyValue><RSAKeyValue><Modulus>6Y+CLWARcbrkTDBWucaXxWskWxgrdVjwOfllJNRm6IQUiWmvOatqEvDKPQaGCVBW4yl2cILJEa2Pcra/XNsBjQ==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><msrel:RelData
xmlns:msrel="http://schemas.microsoft.com/windows/rel/2005/reldata"><r:license
xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS"
xmlns:as="http://schemas.microsoft.com/windows/pki/2005/Authenticode"><r:grant><as:ManifestInformation
Hash="63d12b336c640d2b55ea0ed6980c361853c7dcb8" Description=""
Url=""><as:assemblyIdentity name="WecanAlpha.exe" version="1.0.0.0"
publicKeyToken="dde2dc24be40f2e9" language="neutral"
processorArchitecture="msil" type="win32"
/></as:ManifestInformation><as:SignedBy
/><as:AuthenticodePublisher><as:X509SubjectName>CN=Whelen
Engineering</as:X509SubjectName></as:AuthenticodePublisher></r:grant><r:issuer><Signature
Id="AuthenticodeSignature"
xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference
URI=""><Transforms><Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"
/><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"
/></Transforms><DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"
/><DigestValue>GDnt5lm/FxB4l/CakcXY7OkV9Lc=</DigestValue></Reference></SignedInfo><SignatureValue>A6uP0iA5GqyxN0lFkxsG2PvyxxSzJ3iX4MDPRLVkULKK2rtr0rMAQ/Vd+Xl6x/FnwnxdTyV4EH9GSZoeq4o49w==</SignatureValue><KeyInfo><KeyValue><RSAKeyValue><Modulus>6Y+CLWARcbrkTDBWucaXxWskWxgrdVjwOfllJNRm6IQUiWmvOatqEvDKPQaGCVBW4yl2cILJEa2Pcra/XNsBjQ==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><X509Data><X509Certificate>MIIBLzCB3qADAgECAhBm2SP6hrHdq0xaNOjBCgatMAkGBSsOAwIdBQAwHTEbMBkGA1UEAxMSV2hlbGVuIEVuZ2luZWVyaW5nMB4XDTA3MDcxMjIwMjExNFoXDTEyMDcxMjIwMjExNFowHTEbMBkGA1UEAxMSV2hlbGVuIEVuZ2luZWVyaW5nMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOmPgi1gEXG65EwwVrnGl8VrJFsYK3VY8Dn5ZSTUZuiEFIlprzmrahLwyj0GhglQVuMpdnCCyRGtj3K2v1zbAY0CAwEAATAJBgUrDgMCHQUAA0EAc0yQqrTQcIjqrVWaAx7l2n4CKVvBOAQqWgszeoZz2LL0taY/QxVmfbW04LUD0OWjUURL3KiuYLeRrBZY7NnNsg==</X509Certificate></X509Data></KeyInfo></Signature></r:issuer></r:license></msrel:RelData></KeyInfo></Signature></asmv1:assembly>
 
L

Linda Liu[MSFT]

Hi Kenneth,

This is a quick note to let you know that I'm performing research on this
issue and would get back to you ASAP.

I appreciate your patience!

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
L

Linda Liu[MSFT]

Hi Kenneth,

A signed document uses a hash of the file to verify that the signature is
valid for the document. If you make any alteration to a signed file, you
must sign it again.

In your case, you modify the exe.manifest file(i.e. application manifest)
after it has been signed, so you need to sign this file again. In addition,
you also need to update and re-sign the .application file(i.e. deployment
manifest) based on the exe.manifest.

I will illustrate this with an example.

Suppose I have a WinForm Application named FileAssociationTest created in
VS2008. I publish this application to the local web site
"http://localhost/FileAssociationTest" and the publish folder is
"c:\Inetpub\wwwroot\FileAssociationTest".

The application manifest and deployment manifest files are in the following
folders:
c:\Inetpub\wwwroot\FileAssociationTest\FileAssociationTest.application
c:\Inetpub\wwwroot\FileAssociationTest\Application
Files\FileAssicationTest_1_0_0_0\FileAssociationTest.exe.manifest

Now I open the FileAssociationTest.exe.manifest file with Notepad and add a
<fileAssociation> XML element and save this file.

1. In the VS2008 Command Prompt, type the following command to re-sign the
FileAssociationTest.exe.manifest file with the original certificate:

mage -Sign FileAssociationTest.exe.manifest -CertFile
FileAssociationTest_Temporarykey.pfx

2. Type the following command to update the FileAssociationTest.application
based on the FileAssociationTest.exe.manifest:

mage -Update FileAssociationTest.application -AppManifest "Application
Files\FileAssociationTest_1_0_0_0\FileAssociationTest.exe.manifest"

3. Type the following command to re-sign the
FileAssociationTest.application:

mage -Sign FileAssociationTest.application -CertFile
FileAssociationTest_Temporarykey.pfx

Please try the above steps to see if it can solve your problem and let me
know the result.

Sincerely,
Linda Liu
Microsoft Online Community Support
 
K

Ken Lemieux

Thanks for the response Linda,

However, I used the process you described. In fact I a reference to it at
http://msdn2.microsoft.com/en-us/library/6fehc36e(VS.90).aspx.

In addition, I also found in the remarks section of this page
http://msdn2.microsoft.com/en-us/library/bb882599(VS.90).aspx a reference
that the <fileAssociation> element must follow the <application> element. You
can see in my sample that originally I didn't have it located properly.
However, when I did move it the results are the same.

I'm confident that I followed the procedure you outlined in addition to the
structure outlined also. If it would be of any help I can include new copies
of my files complete with output windows indicating the success of the two
resigning operations and of the manifests and the update operation to the
deployment manifest.

Thanks again.
--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.
 
L

Linda Liu[MSFT]

Hi Kenneth,

Thank you for your response, but I may not understand what you mean exactly.

Do you mean that you have followed the process I described but the problem
is still not solved?

I have performed a test on the steps I gave you in my previous reply and it
works well on my side, i.e. the ClickOnce application can be installed
properly without any error.

In addition, I noticed that there're two errors when the exe.manifest file
is validated in your scenario:
+ Application manifest is not semantically valid.
+ File association default icon "wecan32.ico" must be listed as a
non-optional <file> element.

Please make sure that in the Application Files dialog(Project
Designer->Publish tab->Application Files button), the "Publish Status" of
the file "wecan32.ico" is set to Include and the "Download Group" is set to
"(Required)".

Sincerely,
Linda Liu
Microsoft Online Community Support
 
K

Ken Lemieux

Hi Linda,

Yes, I followed the process you described and theproblem is not solved.

Would you provide a copy of test solution to me?
 
L

Linda Liu[MSFT]

Hi Kenneth,

I have sent my test project to your email box.

If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support
 
K

Ken Lemieux

Hi,

I have solved the problem with my manifest.

The manifest did include the icon file, it is shown below.
<file name="Properties\Resources\wecan32.ico" size="3262">
<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" />
<dsig:DigestValue>hKQC+HwduEy3n7PERz4GD3tPgME=</dsig:DigestValue>
</hash>
</file>

Now looking at my fileAssociation element from my original post:

(<fileAssociation xmlns="urn:schemas-microsoft-com:clickonce.v1"
extension=".wcn" description="WeCan Configuration"
progid="WeCan.Configuration" defaultIcon="wecan32.ico" />)

notice there is no path associated with the specified icon file. Therefore
no file element exists and the deployment failed.

By changing the defaultIcon attribute of the fileAssociation element to:
(defaultIcon="Properties\Resources\wecan32.ico") the icon property was able
to be resolved and installation compete.
 
L

Linda Liu[MSFT]

Hi Kenneth,

Thank you for your update and sharing with us the solution to solve the
problem!

It will definitely benefit all of us!

Thank again for your contribution to this newsgroup!

Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top