Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / November 2006

Tip: Looking for answers? Try searching our database.

clickonce - application cannot be started

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tigger - 13 Nov 2006 07:59 GMT
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
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\billing.gif
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\CBB_R.bmp
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\import_tick.gif
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\report.gif
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\import_blank.gif
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\search.gif
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\cbbcolour.bmp
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\cbbcolour162.bmp
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\searchActive.gif
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Resources\import_process.gif
        + System.Deployment.Internal.Isolation.StoreOperationStageComponent
            - Status: Installed
            - HRESULT: 0x0
            - Manifest: Craig.exe.genman
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Craig.exe
        + System.Deployment.Internal.Isolation.StoreOperationStageComponent
            - Status: Installed
            - HRESULT: 0x0
            - Manifest: Nexus.Storm.CSVParser.dll.genman
        +
System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
            - Status: Installed
            - HRESULT: 0x0
            - File: Nexus.Storm.CSVParser.dll
        +
System.Deployment.Internal.Isolation.StoreOperationInstallDeployment
            - Status: Installed
            - HRESULT: 0x0
            - AppId: http://*****/Craig/Craig.application#Craig.application,
Version=4.0.0.5, Culture=en, PublicKeyToken=1cd593b5dcd79a2e,
processorArchitecture=msil
        +
System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
            - Status: Set
            - HRESULT: 0x0
        +
System.Deployment.Internal.Isolation.StoreOperationUninstallDeployment
            - Status: Uninstalled
            - HRESULT: 0x0
            - AppId: http://*****/Craig/Craig.application#Craig.application,
Version=4.0.0.3, Culture=en, PublicKeyToken=1cd593b5dcd79a2e,
processorArchitecture=msil
        +
System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
            - Status: Set
            - HRESULT: 0x0
        + System.Deployment.Internal.Isolation.StoreTransactionOperationType
(27)
            - HRESULT: 0x0
Tigger - 15 Nov 2006 01:08 GMT
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

> When trying to start a clickonce application I am getting an error
> "application cannot be started".
[quoted text clipped - 269 lines]
> (27)
>             - HRESULT: 0x0

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.