I tried to install on a different machine and got a side-by-side error.
This pointed me to a posting that said it was due the the character
encoding of the config file was different to the manifest.
I changed the encodings to be the same and voila - all worked!
Tigger
[quoted text, click to view] Tigger wrote:
> When trying to start a clickonce application I am getting an error
> "application cannot be started".
>
> In the details it states:
>
> Error HRESULT E_FAIL has been returned from a call to a COM component
>
> I've stripped down the application and switched of anything related to
> com with no success.
>
> Any ideas?
>
> Tigger
>
> error details:
>
> PLATFORM VERSION INFO
> Windows : 5.1.2600.131072 (Win32NT)
> Common Language Runtime : 2.0.50727.42
> System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200)
> mscorwks.dll : 2.0.50727.42 (RTM.050727-4200)
> dfdll.dll : 2.0.50727.42 (RTM.050727-4200)
> dfshim.dll : 2.0.50727.42 (RTM.050727-4200)
>
> SOURCES
> Deployment url :
> file:///C:/Documents%20and%20Settings/Tony%20McCreath/Start%20Menu/Programs/Motown%20-%20Nexus/Craig.appref-ms
> Server : Microsoft-IIS/6.0
> X-Powered-By : Grunt Business Systems,ASP.NET
> Deployment Provider url : http://*****/Craig/Craig.application
> Application url : http://******/Craig_4_0_0_5/Craig.exe.manifest
> Server : Microsoft-IIS/6.0
> X-Powered-By : Grunt Business Systems,ASP.NET
>
> IDENTITIES
> Application Identity : Craig.exe, Version=4.0.0.5, Culture=en,
> PublicKeyToken=1cd593b5dcd79a2e, processorArchitecture=msil, type=win32
>
> ERROR SUMMARY
> Below is a summary of the errors, details of these errors are listed
> later in the log.
> * Activation of C:\Documents and Settings\Tony McCreath\Start
> Menu\Programs\Motown - Nexus\Craig.appref-ms resulted in exception.
> Following failure messages were detected:
> + Error HRESULT E_FAIL has been returned from a call to a COM
> component.
>
> COMPONENT STORE TRANSACTION FAILURE SUMMARY
> No transaction error was detected.
>
> WARNINGS
> There were no warnings during this operation.
>
> OPERATION PROGRESS STATUS
> * [13/11/2006 5:55:16 PM] : Activation of C:\Documents and
> Settings\Tony McCreath\Start Menu\Programs\Motown -
> Nexus\Craig.appref-ms has started.
> * [13/11/2006 5:55:16 PM] : Performing necessary update check as
> specified by the deployment.
> * [13/11/2006 5:55:16 PM] : Consuming new update.
> * [13/11/2006 5:55:19 PM] : Installation of the application has
> started.
> * [13/11/2006 5:55:19 PM] : Processing of application manifest has
> successfully completed.
> * [13/11/2006 5:55:20 PM] : Request of trust and detection of platform
> is complete.
> * [13/11/2006 5:56:05 PM] : Downloading of subscription dependencies
> is complete.
> * [13/11/2006 5:56:05 PM] : Commit of the downloaded application has
> started.
> * [13/11/2006 5:56:05 PM] : Updated application Craig.application,
> Version=4.0.0.5, Culture=en, PublicKeyToken=1cd593b5dcd79a2e,
> processorArchitecture=msil from source
> http://*****/Craig/Craig.application has been accepted.
>
> ERROR DETAILS
> Following errors were detected during this operation.
> * [13/11/2006 5:56:06 PM] System.Runtime.InteropServices.COMException
> - Error HRESULT E_FAIL has been returned from a call to a COM
> component.
> - Source: System.Deployment
> - Stack trace:
> at
> System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32
> hostType, String applicationFullName, Int32 manifestPathsCount,
> String[] manifestPaths, Int32 activationDataCount, String[]
> activationData, PROCESS_INFORMATION processInformation)
> at
> System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId
> appId, Uri activationUri)
> at
> System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId
> appId, Uri activationUri)
> at
> System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId
> appId, AssemblyManifest appManifest, Uri activationUri)
> at
> System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String
> shortcutFile, TempFile& deployFile)
> at
> System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri
> activationUri, Boolean isShortcut)
> at
> System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object
> state)
>
> COMPONENT STORE TRANSACTION DETAILS
> * Transaction at [13/11/2006 5:56:05 PM]
> + System.Deployment.Internal.Isolation.StoreOperationStageComponent
> - Status: Installed
> - HRESULT: 0x0
> - Manifest: AQHWB6K5.Q26.application
> +
> System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
> - Status: Set
> - HRESULT: 0x0
> + System.Deployment.Internal.Isolation.StoreOperationStageComponent
> - Status: Installed
> - HRESULT: 0x0
> - Manifest: Craig.exe.manifest
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\logoonly2.bmp
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\MelbecSD.bmp
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: App.ico
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Craig.exe.config
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\searchClear.gif
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\Shake.ico
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\crystalreport.gif
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\DownSelect.gif
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\import_error.gif
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\batch.gif
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\logoonly.bmp
> +
> System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
> - Status: Installed
> - HRESULT: 0x0
> - File: Resources\admin.gif
> +