Clickonce install fails

  • Thread starter Thread starter Ken Lemieux
  • Start date Start date
K

Ken Lemieux

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.InvalidDeploymentException (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.
 
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="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>NBu/1IciCV6iV/5smxfu3vb4I0o=</DigestValue></Reference></SignedInfo><SignatureValue>Zxa9NffPOdtSsaQKr4gsEdwnc4W2p53SzOle35xrO3xWCs8PLYhhHJrLEtchJQqrQLA/jhNBwZLn7sw386C4sA==</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="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/bEvgSZi40LpBsHOJ1jr5j2zD4B7vIBnVOtPDBPFP1MltoG1lI7E7oE0dBegev0gJ253uWw==</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>

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\WindowsFormsApplication1.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="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>srgHxCkoGtI/W0xndtyR7zZrUCY=</DigestValue></Reference></SignedInfo><SignatureValue>Rg+zOFkpuYCM9dGGcNyfVDcOPKD1B7FJRjgbw65vtwiFFttVq1BDSy2vtXXjP+xerMO3BrWW+QW38TWgId86xA==</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="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>xlEeWrkAtmIRTWJMRPmXYdaK7EINPUSMzBJi+KHYROLTgfhNx+JhYgR+KpRHyqmQgLAX1C+Pu222dCaBK551MA==</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>

and my .manifest manifest:

--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.


Ken Lemieux said:
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.InvalidDeploymentException (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.
 
To clarify - I am also getting the same error when I try to install
clickonce and I have tried everything online searching for an answer and the
only google search keeps coming to your post.

my error is exactly the same.

ERROR DETAILS
Following errors were detected during this operation.
* [01/30/2009 9:46:19 AM]
System.Deployment.Application.InvalidDeploymentException (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)


I have tried to resolve this error:
- Your Web browser settings do not allow you to run unsigned applications.
by going to IE7 security and turning it all off and it doesnt do anything.

Thanks

Miro
 
SUCCESS!!!
Got it working.
After the Fire Fox test and I had the same issues
- it got me thinking it not a browser issue, and using the assumption that
it defenitly doesnt look like a vs issue ( since the files are created
properly )...i was left with 2 options.
Vista security or IIS

I started searching the IIS forums and found my answer.
http://forums.iis.net/p/1152570/1882738.aspx
It doesnt say how however - so this is the next link that showed me how.
http://weblogs.asp.net/anasghanem/a...ontent-service-quot-in-iis7-installation.aspx

One more thing I had to reboot for the setting to take effect.

Thank you for your time and your help.

You can close this ticket.

Cheers'

Miro


Miro said:
To clarify - I am also getting the same error when I try to install
clickonce and I have tried everything online searching for an answer and
the only google search keeps coming to your post.

my error is exactly the same.

ERROR DETAILS
Following errors were detected during this operation.
* [01/30/2009 9:46:19 AM]
System.Deployment.Application.InvalidDeploymentException (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)


I have tried to resolve this error:
- Your Web browser settings do not allow you to run unsigned applications.
by going to IE7 security and turning it all off and it doesnt do anything.

Thanks

Miro



miro said:
Wondering if you found the solution to this problem and what it was.
Im having the same issue and cannot seem to find which security setting
it is.
 
Back
Top