468,104 Members | 1,294 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,104 developers. It's quick & easy.

Clickonce install fails

My clickonce app fails when the install button on the publish.htm page is
clicked.
User is prompted with a "Cannot Start Application" dialog.
Details provided from the dialog are:

PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)

SOURCES
Deployment url :
file:///C:/TFS%20Projects/Temp/PublishTests/WindowsFormsApplication1.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later
in the log.
* Activation of
file:///C:/TFS%20Projects/Temp/PublishTests/WindowsFormsApplication1.application resulted in exception. Following failure messages were detected:
+ Your Web browser settings do not allow you to run unsigned applications.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [10/2/2008 1:23:12 PM] : Activation of
file:///C:/TFS%20Projects/Temp/PublishTests/WindowsFormsApplication1.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [10/2/2008 1:23:12 PM]
System.Deployment.Application.InvalidDeploymentExc eption (Manifest)
- Your Web browser settings do not allow you to run unsigned applications.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.ApplicationActivator .BrowserSettings.Validate(String manifestPath)
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.
Project built on Windows Xp sp3 using Visual Studio 2008 sp1 and .Net
framework 3.5 sp1.

Install is targeting same machine.

Launching windowsFormsApplication.application directly works without error.

--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.
Oct 2 '08 #1
3 4847
Oops, I forgot to staet the obvious! The signing properties page DOES have a
valid cerificate, been using it for years, and "Sign the Clickonce manifests"
IS checked.

Security settings are ENABLED and requested to run as a "FULL TRUST"
application.

Here is my .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:asmv3="urn:schemas-microsoft-com:asm.v3"
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"
xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1">
<asmv1:assemblyIdentity name="WindowsFormsApplication1.exe"
version="1.0.0.9" publicKeyToken="dde2dc24be40f2e9" language="neutral"
processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="WindowsFormsApplication1" version="1.0.0.0"
publicKeyToken="DDE2DC24BE40F2E9" language="neutral"
processorArchitecture="msil" />
<commandLine file="WindowsFormsApplication1.exe" parameters="" />
</entryPoint>
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!--
UAC Manifest Options
If you want to change the Windows User Account Control level
replace the
requestedExecutionLevel node with one of the following.

<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator"
uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />

If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</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="WindowsFormsApplication1.exe" size="6656">
<assemblyIdentity name="WindowsFormsApplication1" version="1.0.0.0"
publicKeyToken="DDE2DC24BE40F2E9" 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>T31C/y6TPjKvlJJ8DKv2qi3M43c=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<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>NBu/1IciCV6iV/5smxfu3vb4I0o=</DigestValue></Reference></SignedInfo><SignatureValue>Zxa9NffPOdtSsaQKr4gsEdw nc4W2p53SzOle35xrO3xWCs8PLYhhHJrLEtchJQqrQLA/jhNBwZLn7sw386C4sA==</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="4a23f8f6deee179b6cfe57a25e092287d4bf1b34" Description=""
Url=""><as:assemblyIdentity name="WindowsFormsApplication1.exe"
version="1.0.0.9" 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>/cMfGBJMfAd8Wn9yMFDPf7ITIC4=</DigestValue></Reference></SignedInfo><SignatureValue>huaymcM2CQckH4X/bEvgSZi40LpBsHOJ1jr5j2zD4B7vIBnVOtPDBPFP1MltoG1lI7 E7oE0dBegev0gJ253uWw==</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>

Thanks!

<?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#"
xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1"
xmlns="urn:schemas-microsoft-com:asm.v2"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity name="WindowsFormsApplication1.application"
version="1.0.0.9" publicKeyToken="dde2dc24be40f2e9" language="neutral"
processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="Whelen Engineering"
asmv2:product="WindowsFormsApplication1"
xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" mapFileExtensions="true" />
<dependency>
<dependentAssembly dependencyType="install" codebase="Application
Files\WindowsFormsApplication1_1_0_0_9\WindowsForm sApplication1.exe.manifest"
size="6839">
<assemblyIdentity name="WindowsFormsApplication1.exe"
version="1.0.0.9" publicKeyToken="dde2dc24be40f2e9" language="neutral"
processorArchitecture="msil" type="win32" />
<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>n3JngxH8CWUKFze9na21+wxLR+8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<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>srgHxCkoGtI/W0xndtyR7zZrUCY=</DigestValue></Reference></SignedInfo><SignatureValue>Rg+zOFkpuYCM9dGGcNyfVDc OPKD1B7FJRjgbw65vtwiFFttVq1BDSy2vtXXjP+xerMO3BrWW+ QW38TWgId86xA==</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="26506b36ef91dc76674c5b3fd21a2829c407b8b2" Description=""
Url=""><as:assemblyIdentity name="WindowsFormsApplication1.application"
version="1.0.0.9" publicKeyToken="dde2dc24be40f2e9" language="neutral"
processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1"
/></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>xC+PWe/M5IZ6eRbruAHrmvYB+08=</DigestValue></Reference></SignedInfo><SignatureValue>xlEeWrkAtmIRTWJMRPmXYda K7EINPUSMzBJi+KHYROLTgfhNx+JhYgR+KpRHyqmQgLAX1C+Pu 222dCaBK551MA==</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>

and my .manifest manifest:

--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.
"Ken Lemieux" wrote:
My clickonce app fails when the install button on the publish.htm page is
clicked.
User is prompted with a "Cannot Start Application" dialog.
Details provided from the dialog are:

PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)

SOURCES
Deployment url :
file:///C:/TFS%20Projects/Temp/PublishTests/WindowsFormsApplication1.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later
in the log.
* Activation of
file:///C:/TFS%20Projects/Temp/PublishTests/WindowsFormsApplication1.application resulted in exception. Following failure messages were detected:
+ Your Web browser settings do not allow you to run unsigned applications.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [10/2/2008 1:23:12 PM] : Activation of
file:///C:/TFS%20Projects/Temp/PublishTests/WindowsFormsApplication1.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [10/2/2008 1:23:12 PM]
System.Deployment.Application.InvalidDeploymentExc eption (Manifest)
- Your Web browser settings do not allow you to run unsigned applications.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.ApplicationActivator .BrowserSettings.Validate(String manifestPath)
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.
Project built on Windows Xp sp3 using Visual Studio 2008 sp1 and .Net
framework 3.5 sp1.

Install is targeting same machine.

Launching windowsFormsApplication.application directly works without error.

--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.
Oct 2 '08 #2
does it happen on just one PC?
Oct 5 '08 #3
No, any on which I attempt to install.
--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.
"Marc" wrote:
does it happen on just one PC?
Oct 6 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by moondaddy | last post: by
reply views Thread by =?Utf-8?B?Q29saXZpZXI=?= | last post: by
1 post views Thread by Jack | last post: by
reply views Thread by andrewschools | last post: by
3 posts views Thread by =?Utf-8?B?Um9nZXIgVHJhbmNoZXo=?= | last post: by
2 posts views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.