HighTechTalks DotNet Forums  

Clickonce file association

Dotnet General Discussions microsoft.public.dotnet.general


Discuss Clickonce file association in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ken Lemieux
 
Posts: n/a

Default Clickonce file association - 12-12-2007 , 12:25 PM






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.applic ation 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.applic ation 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.InvalidDeploymentExc eption (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.FromD ocument(String
localPath, ManifestType manifestType, Uri sourceUri)
at
System.Deployment.Application.DownloadManager.Down loadApplicationManifest(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.InvalidDeploymentExc eption
(ManifestSemanticValidation)
- Application manifest is not semantically valid.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.Manifest.AssemblyMan ifest.ValidateSemanticsForApplicationRole()
at
System.Deployment.Application.Manifest.AssemblyMan ifest.ValidateSemantics(ManifestType manifestType)
at System.Deployment.Application.ManifestReader.FromD ocument(String
localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentExc eption (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.AssemblyMan ifest.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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>v0p5iXRsOxYj2grf3+8KTIY3kJM=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>iqrmeb39ifORLcecZEdslOI20jA=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>iE9Ty3AZmf9Ft3gSV0BxLs4tXpQ=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>HRHHW7Yoc18qCKtWou3Rw1kD9X4=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>aOhO/LbNR4kCdjbJ8pvdX8qPY+c=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>NvPFuLBCMl1WTYmovwaoOCBZGFI=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>/ZJiu5Wf3u0bLGdxJpc/8+yHqRw=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>nVeA7OP2YVVaqCMdRIbH5p0G+zY=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>qZKQVDuVkMK8Te5JZ8eFjhXLjPU=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>haLaFNnopBJF9vOTWbx8NNVScEE=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>sUhWPsEqSF90jW8o1XLSPqBHeQc=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>YK/hbTCc4EZvNw4m4qkClGtYbZo=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>h0MU82KEY68aODR7xaZPer9QZrg=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>D830nX7eAgEMbjImkpFf4PGMZoo=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>DusuoUK0vDeiQBtxG++/uP8w2QM=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>3wyMEl+nGgfuU96u+nbYTZXVal4=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>UpwFYX++EI2No4xuqrOOmuJabtM=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>q2eudxHKn3/L+8fFwonbA/sKfms=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>UhD2opiU5kLSoVGQJJlqycSZNPE=</dsigigestValue>
</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>
<dsigigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>e6XbEytSGGqdyUYwpm2F1mJPIOE=</dsigigestValue>
</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>
<dsigigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>p/EFcIjN0uQIkPYuP6AKi/fe+8E=</dsigigestValue>
</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>
<dsigigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>hKQC+HwduEy3n7PERz4GD3tPgME=</dsigigestValue>
</hash>
</file>
<file name="Wecan Help.chm" size="1479286">
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsigigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>FJZBbmWK+gIMXocXsrjPaY4s3xo=</dsigigestValue>
</hash>
</file>
<file name="WecanAlpha.exe.config" size="939">
<hash>
<dsig:Transforms>
<dsig:Transform
Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsigigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>bs7XPZsdJAVkYxhGxINs+6dVdXw=</dsigigestValue>
</hash>
</file>
<publisherIdentity name="CN=Whelen Engineering"
issuerKeyHash="8a2ccb35ddff830b9a56d47f26af8bb5cc6 3fb0d" /><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+Et1JUw0pgnKk YhlTpewWEvrcmDCjoGCoL1IND38QCVgBvns5MhmPOmQzFpO1y/H5gWBOJhiyZMw==</SignatureValue><KeyInfo
Id="StrongNameKeyInfo"><KeyValue><RSAKeyValue><Mod ulus>6Y+CLWARcbrkTDBWucaXxWskWxgrdVjwOfllJNRm6IQUi WmvOatqEvDKPQaGCVBW4yl2cILJEa2Pcra/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>A6uP0iA5GqyxN0lFkxsG2Pv yxxSzJ3iX4MDPRLVkULKK2rtr0rMAQ/Vd+Xl6x/FnwnxdTyV4EH9GSZoeq4o49w==</SignatureValue><KeyInfo><KeyValue><RSAKeyValue><Mo dulus>6Y+CLWARcbrkTDBWucaXxWskWxgrdVjwOfllJNRm6IQU iWmvOatqEvDKPQaGCVBW4yl2cILJEa2Pcra/XNsBjQ==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><X509Data><X509Certificate>MIIBLzCB3qADAg ECAhBm2SP6hrHdq0xaNOjBCgatMAkGBSsOAwIdBQAwHTEbMBkG A1UEAxMSV2hlbGVuIEVuZ2luZWVyaW5nMB4XDTA3MDcxMjIwMj ExNFoXDTEyMDcxMjIwMjExNFowHTEbMBkGA1UEAxMSV2hlbGVu IEVuZ2luZWVyaW5nMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAO mPgi1gEXG65EwwVrnGl8VrJFsYK3VY8Dn5ZSTUZuiEFIlprzmr ahLwyj0GhglQVuMpdnCCyRGtj3K2v1zbAY0CAwEAATAJBgUrDg MCHQUAA0EAc0yQqrTQcIjqrVWaAx7l2n4CKVvBOAQqWgszeoZz 2LL0taY/QxVmfbW04LUD0OWjUURL3KiuYLeRrBZY7NnNsg==</X509Certificate></X509Data></KeyInfo></Signature></r:issuer></r:license></msrel:RelData></KeyInfo></Signature></asmv1:assembly>
--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.

Reply With Quote
  #2  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: Clickonce file association - 12-13-2007 , 02:27 AM






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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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


Reply With Quote
  #3  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: Clickonce file association - 12-14-2007 , 04:29 AM



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\FileAssocia tionTest.application
c:\Inetpub\wwwroot\FileAssociationTest\Application
Files\FileAssicationTest_1_0_0_0\FileAssociationTe st.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\FileAssociationT est.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


Reply With Quote
  #4  
Old   
Ken Lemieux
 
Posts: n/a

Default RE: Clickonce file association - 12-14-2007 , 07:44 AM



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/lib...6e(VS.90).aspx.

In addition, I also found in the remarks section of this page
http://msdn2.microsoft.com/en-us/lib...99(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.


"Linda Liu[MSFT]" wrote:

Quote:
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\FileAssocia tionTest.application
c:\Inetpub\wwwroot\FileAssociationTest\Application
Files\FileAssicationTest_1_0_0_0\FileAssociationTe st.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\FileAssociationT est.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



Reply With Quote
  #5  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: Clickonce file association - 12-17-2007 , 12:43 AM



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


Reply With Quote
  #6  
Old   
Ken Lemieux
 
Posts: n/a

Default RE: Clickonce file association - 12-18-2007 , 10:35 AM



Hi Linda,

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

Would you provide a copy of test solution to me?
--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.


"Linda Liu[MSFT]" wrote:

Quote:
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



Reply With Quote
  #7  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: Clickonce file association - 12-18-2007 , 09:47 PM



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


Reply With Quote
  #8  
Old   
Ken Lemieux
 
Posts: n/a

Default RE: Clickonce file association - 01-02-2008 , 11:57 AM



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>
<dsigigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsigigestValue>hKQC+HwduEy3n7PERz4GD3tPgME=</dsigigestValue>
</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.
--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.


"Linda Liu[MSFT]" wrote:

Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.