ClickOnce exception in IE

P

Peter Carlson

Our app uses the following chain of urls:
1. yoursite.com/launch.php?room=00000271 - validates the roomid appends
an appropriate server variable and encrypts and adds a hash and sends on
to #2

2. mysite.com/launch.php decodes the encryption and compares hash for
alteration. Re-encodes and redirects to #3

3. clickonceinstaller.application?encoded variables here

All redirects are done with:
header("Cache-Control: no-cache");
header("Pragma: no-cache");
header('Location: ' . $url);

If I open IE and type in the starting link I get the clickonce app with
no problems. If I leave the browser open and do it again (type in the
url) I get:
Cannot continue. The application is improperly formatted.
Details reveal:
the manifest may not be valid or the file could not be opened.
+ There are multiple root elements. Line 1, position 122.

And I notice that I get a HTTP response of 206 instead of 200.
Any ideas?

Peter

<?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="clickonceinstaller.application"
version="1.0.1.24" publicKeyToken="e4b2116e6f4725ca" language="neutral"
processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="Simple Software" asmv2:product="keynote
Conference Installer"
asmv2:supportUrl="http://www.keynoteconference.com/support.html"
xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="false" mapFileExtensions="true"
trustURLParameters="true" />
<dependency>
<dependentAssembly dependencyType="install" codebase="Application
Files\clickonceinstaller_1_0_1_24\clickonceinstaller.exe.manifest"
size="6726">
<assemblyIdentity name="clickonceinstaller.exe"
version="1.0.1.24" publicKeyToken="e4b2116e6f4725ca" 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>mtTK7oG+Y/8Xsln5nbigHLsoR5U=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<publisherIdentity name="CN=OFFICE\peter"
issuerKeyHash="f6075c3cf738f091b41ccd1b000b1f52d4768c79" /><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>vuqzsCVMxOLXDLf2YZaU5FsdS8E=</DigestValue></Reference></SignedInfo><SignatureValue>fQPRdHv5qbdz8rUf2PcKPvQK5m/z9vb5nJtBS7mx+T2WHEames+hzgyxL7wPa3orinNm7Ydu7kjO4jqVn8sUxRW9GFPV/9N4Yf1Z4tHxKL/L3P1kGpLl2iQ9aL4sF/NP8TtSJOz0/I8cvWB2rcQ6DsBhOt+5UIWuIE+pxZ96E6I=</SignatureValue><KeyInfo
Id="StrongNameKeyInfo"><KeyValue><RSAKeyValue><Modulus>urxqaZsciPcu2hNXX/e98wzHFTUDqvJI5hNQWUn3tZW2k7PceI1JwnB5IRAPLlyDWI3CnPxk1U64jeT3pfLOCl9VLrPzanDtF+pCc7k/c6ggTdaNt0CFOI22HYisCibbpEJrAfaN82gG4esl2+XKGZ4lA2zDKtfswMq6UZNooOc=</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="c14b1d5be4949661f6b70cd7e2c44c25b0b3eabe" Description=""
Url=""><as:assemblyIdentity name="clickonceinstaller.application"
version="1.0.1.24" publicKeyToken="e4b2116e6f4725ca" language="neutral"
processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1"
/></as:ManifestInformation><as:SignedBy
/><as:AuthenticodePublisher><as:X509SubjectName>CN=OFFICE\peter</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>Y0wvRRkUSczCIHA9w9bu8qeCp/8=</DigestValue></Reference></SignedInfo><SignatureValue>GJhFgWLkDFg4SvgtkS+q64CAgwcENllrB+o3bZrzqs+0SOvTbky/En02/lfjYgxCrY5FG1aER//VyE3CWgxmisoMQ98D64J1fWbFbDMtyCoALt8NMXlUTKNWREFkyBN3gPrK71GC0i8y2BjjngdpRGWds31oymATrHaZBjtm1m0=</SignatureValue><KeyInfo><KeyValue><RSAKeyValue><Modulus>urxqaZsciPcu2hNXX/e98wzHFTUDqvJI5hNQWUn3tZW2k7PceI1JwnB5IRAPLlyDWI3CnPxk1U64jeT3pfLOCl9VLrPzanDtF+pCc7k/c6ggTdaNt0CFOI22HYisCibbpEJrAfaN82gG4esl2+XKGZ4lA2zDKtfswMq6UZNooOc=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><X509Data><X509Certificate>MIIBwTCCAS6gAwIBAgIQ0HEM8WLFMZhC3wOYEjwnkjAJBgUrDgMCHQUAMCMxITAfBgNVBAMeGABPAEYARgBJAEMARQBcAHAAZQB0AGUAcjAeFw0wODAzMTAxOTU0MTRaFw0wOTAzMTEwMTU0MTRaMCMxITAfBgNVBAMeGABPAEYARgBJAEMARQBcAHAAZQB0AGUAcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAurxqaZsciPcu2hNXX/e98wzHFTUDqvJI5hNQWUn3tZW2k7PceI1JwnB5IRAPLlyDWI3CnPxk1U64jeT3pfLOCl9VLrPzanDtF+pCc7k/c6ggTdaNt0CFOI22HYisCibbpEJrAfaN82gG4esl2+XKGZ4lA2zDKtfswMq6UZ

NooOcCAwEAATAJBgUrDgMCHQUAA4GBAFpRqOx3tfyShcAuTlFsOqtwj9Z6sqaIO3SyrFEGcscOMt5RkLFxLJtLuwjuQM0Y2xOWg8IG+LIWJ1K+jDkdaESOu3ZwRi/y9jNQLPteZwQ+IoSbnIaTosnC5UHKvEFr0nZEGbZJQyRMWusaRIn9CoVj35s+BZyOKlKi3Tvj/jQa</X509Certificate></X509Data></KeyInfo></Signature></r:issuer></r:license></msrel:RelData></KeyInfo></Signature></asmv1:assembly>
 

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