ClickOnce Deploy problem: System.Deployment.Application.InvalidDeploymentException

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im trying to debug a ClickOnce deployment problem. Heres the scenario: I have 4 projects being built by an automated server. All 4 publish their app on the same server. 3 out of the 4 apps install properly through ClickOnce. The
4th one does not. I spent the last few days trying to figure out what is different with the 4th project and compared everything from the CSPROJ file to the SLN file to the directory properties, IIS setup properties, etc. and nothing is jumping out at
me. I tried to follow the instructions to setup logging (http://msdn.microsoft.com/en-us/library/ms404265.aspx) but that doesnt work. Has anyone made it work? Im using "C:logs" as my log path.
Heres the output when I click on Install:

PLATFORM VERSION INFO
<span style="white-space:pre Windows <span style="white-space:pre : 5.1.2600.196608 (Win32NT)
<span style="white-space:pre Common Language Runtime <span style="white-space:pre
: 4.0.30319.1
<span style="white-space:pre System.Deployment.dll <span style="white-space:pre
: 4.0.30319.1 (RTMRel.030319-0100)
<span style="white-space:pre clr.dll <span style="white-space:pre : 4.0.30319.1 (RTMRel.030319-0100)
<span style="white-space:pre dfdll.dll <span style="white-space:pre : 4.0.30319.1 (RTMRel.030319-0100)
<span style="white-space:pre dfshim.dll <span style="white-space:pre
: 4.0.31106.0 (Main.031106-0000)

SOURCES
<span style="white-space:pre Deployment url<span style="white-space:pre
: http://10.16.30.119/baseline_10/Baseline.application
<span style="white-space:pre Server<span style="white-space:pre
: Microsoft-IIS/6.0
<span style="white-space:pre X-Powered-By<span style="white-space:pre
: ASP.NET
<span style="white-space:pre Deployment Provider url<span style="white-space:pre
: http://10.16.30.119/baseline_10/Baseline.application

IDENTITIES
<span style="white-space:pre Deployment Identity<span style="white-space:pre
: Baseline.application, Version=10.0.0.6723, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86

APPLICATION SUMMARY
<span style="white-space:pre * Installable application.

ERROR SUMMARY
<span style="white-space:pre Below is a summary of the errors, details of these errors are listed later in the log.
<span style="white-space:pre * Activation of http://10.16.30.119/baseline_10/Baseline.application resulted in exception. Following failure messages were detected:
<span style="white-space:pre + Exception reading manifest from http://10.16.30.119/baseline_10/Application%20Files/Baseline_10_0_0_6723/Baseline.exe.manifest: the manifest may not be valid or the file could not be opened.
<span style="white-space:pre + Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
<span style="white-space:pre -HRESULT: <span style="white-space:pre 0x80070c81
<span style="white-space:pre Start line: <span style="white-space:pre
0
<span style="white-space:pre Start column: <span style="white-space:pre
0
<span style="white-space:pre Host file: <span style="white-space:pre

<span style="white-space:pre + Exception from HRESULT: 0x80070C81

COMPONENT STORE TRANSACTION FAILURE SUMMARY
<span style="white-space:pre No transaction error was detected.

WARNINGS
<span style="white-space:pre * The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
<span style="white-space:pre * [3/30/2011 7:12:35 PM] : Activation of http://10.16.30.119/baseline_10/Baseline.application has started.
<span style="white-space:pre * [3/30/2011 7:12:35 PM] : Processing of deployment manifest has successfully completed.
<span style="white-space:pre * [3/30/2011 7:12:35 PM] : Installation of the application has started.

ERROR DETAILS
<span style="white-space:pre Following errors were detected during this operation.
<span style="white-space:pre * [3/30/2011 7:12:39 PM] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
<span style="white-space:pre - Exception reading manifest from http://10.16.30.119/baseline_10/Application%20Files/Baseline_10_0_0_6723/Baseline.exe.manifest: the manifest may not be valid or the file could not be opened.
<span style="white-space:pre - Source: System.Deployment
<span style="white-space:pre - Stack trace:
<span style="white-space:pre at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
<span style="white-space:pre at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri&
appSourceUri, String& appManifestPath)
<span style="white-space:pre at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
<span style="white-space:pre at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
<span style="white-space:pre at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings,
String& errorPageUrl)
<span style="white-space:pre at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
<span style="white-space:pre --- Inner Exception ---
<span style="white-space:pre System.Deployment.Application.InvalidDeploymentException (ManifestParse)
<span style="white-space:pre - Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
<span style="white-space:pre -HRESULT: <span style="white-space:pre 0x80070c81
<span style="white-space:pre Start line: <span style="white-space:pre
0
<span style="white-space:pre Start column: <span style="white-space:pre
0
<span style="white-space:pre Host file: <span style="white-space:pre

<span style="white-space:pre - Source: System.Deployment
<span style="white-space:pre - Stack trace:
<span style="white-space:pre at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)
<span style="white-space:pre at System.Deployment.Application.Manifest.AssemblyManifest..ctor(FileStream fileStream)
<span style="white-space:pre at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
<span style="white-space:pre --- Inner Exception ---
<span style="white-space:pre System.Runtime.InteropServices.COMException
<span style="white-space:pre - Exception from HRESULT: 0x80070C81
<span style="white-space:pre - Source: System.Deployment
<span style="white-space:pre - Stack trace:
<span style="white-space:pre at System.Deployment.Internal.Isolation.IsolationInterop.CreateCMSFromXml(Byte[] buffer, UInt32 bufferSize, IManifestParseErrorCallback Callback, Guid& riid)
<span style="white-space:pre at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)

COMPONENT STORE TRANSACTION DETAILS
<span style="white-space:pre No transaction information is available.

DETAILED EXECUTION FLOW
[19:12:35] : Activation through dfsvc.exe started.
[19:12:35] : Method Call : ActivateDeploymentWorker(http://10.16.30.119/baseline_10/Baseline.application,False,,,System.Deployment.Application.ApplicationActivator+BrowserSettings) called.
[19:12:35] : Method Call : PerformDeploymentActivation called.
[19:12:35] : Activating through deployment manifest.
[19:12:35] : Start processing deployment manifest.
[19:12:35] : Method Call : DownloadDeploymentManifestBypass called.
[19:12:35] : Method Call : DownloadDeploymentManifestDirectBypass called.
[19:12:35] : Method Call : DownloadManifestAsRawFile called.
[19:12:35] : Method Call : DownloadSingleFile called
[19:12:35] : DownloadQueueItem : _sourceUri = http://10.16.30.119/baseline_10/Baseline.application, _targetPath = C:Documents and SettingshhungLocal SettingsTempDeployment75YJK3G6.7Y56J22E9Z5.RO8.application
[19:12:35] : HttpWebRequest= Proxy.IsByPassed=True, ProxyUri=http://10.16.30.119/baseline_10/Baseline.application
[19:12:35] : HttpWebResponse=ResponseUri=http://10.16.30.119/baseline_10/Baseline.application
[19:12:35] : Method Call : ManifestReader.FromDocumentNoValidation(C:Documents and SettingshhungLocal SettingsTempDeployment75YJK3G6.7Y56J22E9Z5.RO8.application) called.
[19:12:35] : expectedAppId=http://10.16.30.119/baseline_10/Baseline.application#Baseline.application, Version=10.0.0.6723, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86/Baseline.exe, Version=10.0.0.6723, Culture=neutral, PublicKeyToken=0000000000000000,
processorArchitecture=x86, type=win32
[19:12:35] : Reparse the deployment manifest for validations.
[19:12:35] : Method Call : ManifestReader.FromDocument(C:Documents and SettingshhungLocal SettingsTempDeployment75YJK3G6.7Y56J22E9Z5.RO8.application) called.
[19:12:35] : Schema validation passed.
[19:12:35] : Manifest is parsed successfully.
[19:12:35] : Semantic validation passed.
[19:12:35] : Manifest is unsigned.
[19:12:35] : Signature validation passed.
[19:12:35] : Method Call : FollowDeploymentProviderUri called.
[19:12:35] : Deployment manifest zone is not local machine. Zone = Internet
[19:12:35] : providerUri=http://10.16.30.119/baseline_10/Baseline.application,sourceUri=http://10.16.30.119/baseline_10/Baseline.application
[19:12:35] : Deployment provider not followed.
[19:12:35] : Method Call : BrowserSettings.Validate(C:Documents and SettingshhungLocal SettingsTempDeployment75YJK3G6.7Y56J22E9Z5.RO8.application) called.
[19:12:35] : Method Call : AnalyzeManifestCertificate called.
[19:12:35] : Exception thrown : System.Security.Cryptography.CryptographicException:No signature was present in the subject.

[19:12:35] : Certificate Status=UnknownCertificateStatus
[19:12:35] : Browser settings allow activation. ManagedSignedFlag=URLPOLICY_ALLOW,ManagedUnSignedFlag=URLPOLICY_ALLOW
[19:12:35] : Processing of deployment manifest has successfully completed.
[19:12:35] : Could not find application in store. Continue with downloading application manifest.
[19:12:35] : Method Call : InstallApplication called.
[19:12:35] : Method Call : DownloadApplication called.
[19:12:35] : Start processing application manifest.
[19:12:35] : Method Call : DownloadApplicationManifest called.
[19:12:35] : Method Call : DownloadManifest called.
[19:12:35] : Method Call : DownloadManifestAsRawFile called.
[19:12:35] : Method Call : DownloadSingleFile called
[19:12:35] : DownloadQueueItem : _sourceUri = http://10.16.30.119/baseline_10/Application Files/Baseline_10_0_0_6723/Baseline.exe.manifest, _targetPath = C:Documents and SettingshhungLocal SettingsTempDeploymentH5H9VMRD.WNM9E9OP8W8.LMKBaseline.exe.manifest
[19:12:35] : HttpWebRequest= Proxy.IsByPassed=True, ProxyUri=http://10.16.30.119/baseline_10/Application Files/Baseline_10_0_0_6723/Baseline.exe.manifest
[19:12:39] : HttpWebResponse=ResponseUri=http://10.16.30.119/baseline_10/Application Files/Baseline_10_0_0_6723/Baseline.exe.manifest
[19:12:39] : Method Call : ManifestReader.FromDocument(C:Documents and SettingshhungLocal SettingsTempDeploymentH5H9VMRD.WNM9E9OP8W8.LMKBaseline.exe.manifest) called.
[19:12:39] : Schema validation passed.



View the full article
 
Back
Top