Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Application Open Twice, Error on Load
 

Application Open Twice, Error on Load

I have a weird scenario in one of my clients.

When I open the application there is an exception, see details in the end.

Then I close that window, and openthe application againthis time the application is loaded with no exception.

Do you have any Idea.

ps

I have another client he has no problems at all.

Details:

PLATFORM VERSION INFO
Windows : 5.2.3790.65536 (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/Administrator/Start%20Menu/Programs/Softwear%20Suit%20Ltd/PowerJobs.appref-ms
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Deployment Provider url: http://www.powerjobs.co.il/Clients/Files/Client/PowerJobs.application
Application url: http://www.powerjobs.co.il/Clients/Files/Client/PowerJobs_1_1_1_34/PowerJobs.exe.manifest
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET

IDENTITIES
Application Identity: PowerJobs.exe, Version=1.1.1.34, Culture=neutral, PublicKeyToken=b42661976acd71c5, 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\Administrator\Start Menu\Programs\Softwear Suit Ltd\PowerJobs.appref-ms resulted in exception. Following failure messages were detected:
+ Exception occurred during store operation.
+ Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [21/06/2006 09:05:56] : Activation of C:\Documents and Settings\Administrator\Start Menu\Programs\Softwear Suit Ltd\PowerJobs.appref-ms has started.
* [21/06/2006 09:05:57] : Performing necessary update check as specified by the deployment.
* [21/06/2006 09:06:05] : Consuming new update.
* [21/06/2006 09:06:07] : Installation of the application has started.
* [21/06/2006 09:06:09] : Processing of application manifest has successfully completed.
* [21/06/2006 09:06:11] : Request of trust and detection of platform is complete.
* [21/06/2006 09:07:44] : Downloading of subscription dependencies is complete.
* [21/06/2006 09:07:44] : Commit of the downloaded application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [21/06/2006 09:07:55] System.Deployment.Application.DeploymentException (ComponentStore)
- Exception occurred during store operation.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)
at System.Deployment.Application.ComponentStore.SubmitStoreTransactionCheckQuota(StoreTransactionContext storeTxn, SubscriptionState subState)
at System.Deployment.Application.ComponentStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState subState)
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)
--- Inner Exception ---
System.UnauthorizedAccessException
- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStateManager.Scavenge(UInt32 Flags, UInt32& Disposition)
at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)

COMPONENT STORE TRANSACTION DETAILS
* Transaction at [21/06/2006 09:07:55]
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: W6H3C412.091.application
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: PowerJobs.exe.manifest
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: shield2.ico
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Junk\PH.txt
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: PowerJobs.exe.config
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Stimulsoft.Report.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Stimulsoft.Report.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: PJDataLayer.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: PJDataLayer.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Aspose.Words.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Aspose.Words.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Practices.EnterpriseLibrary.Common.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Practices.EnterpriseLibrary.Common.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: PowerJobsDll.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: PowerJobsDll.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: ActiproSoftware.Shared.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: ActiproSoftware.Shared.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Editor.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Editor.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: PureComponents.EntrySet.Extenders.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: PureComponents.EntrySet.Extenders.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Office.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Office.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: ActiproSoftware.UIStudio.NavigationBar.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: ActiproSoftware.UIStudio.NavigationBar.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Candidate_INET.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Candidate_INET.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Practices.ObjectBuilder.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Practices.ObjectBuilder.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: XIndexDLL.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: XIndexDLL.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: HtmlEditor.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: HtmlEditor.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: OutlookGUI.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: OutlookGUI.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: OutlookController.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: OutlookController.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: ResumeWriter.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: ResumeWriter.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Office.Interop.Outlook.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Office.Interop.Outlook.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: PureComponents.NicePanel.fw11.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: PureComponents.NicePanel.fw11.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: XFullTextSearchDll.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: XFullTextSearchDll.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: ActiproSoftware.UIStudio.Dock.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: ActiproSoftware.UIStudio.Dock.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Stimulsoft.Controls.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Stimulsoft.Controls.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: ActiproSoftware.WinUICore.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: ActiproSoftware.WinUICore.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Vbe.Interop.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Vbe.Interop.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Office.Interop.Word.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Office.Interop.Word.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.mshtml.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.mshtml.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: stdole.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: stdole.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: PowerJobs.exe.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: PowerJobs.exe
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Stimulsoft.Base.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Stimulsoft.Base.dll
+ System.Deployment.Internal.Isolation.StoreOperationInstallDeployment
- Status: Installed
- HRESULT: 0x0
- AppId: http://www.powerjobs.co.il/Clients/Files/Client/PowerJobs.application#PowerJobs.application, Version=1.1.1.34, Culture=neutral, PublicKeyToken=b42661976acd71c5, processorArchitecture=msil
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreOperationUninstallDeployment
- Status: Uninstalled
- HRESULT: 0x0
- AppId: http://www.powerjobs.co.il/Clients/Files/Client/PowerJobs.application#PowerJobs.application, Version=1.1.1.28, Culture=neutral, PublicKeyToken=b42661976acd71c5, processorArchitecture=msil
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x0

Itzik Katzav  Monday, July 03, 2006 1:54 PM

Hi ItZik,

Doesn't look like anyone was able to help you.... I'm not going to be a great help either as I am trying to troubleshoot a similar problem. I've been throwing information into the following post:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=665083&SiteID=1

Basically, the problem is more than likely occuring on the 2nd update to your app, which is why one client seems to be running ok and you are not... you may have gotten more updates. ClickOnce leaves 2 versions of the application on your machine for rollback purposes. So, first install, no problem (that's version 'A'), first update no problem (that's version 'B'). During the second update, clickonce tries to uninstall version 'A' after install of version 'C', and this is where your error is occurring. My problem occurs in the "manifests' folder of my ClickOnce directory.

The way I look at it, the more minds work on this one the better.... there needs to be a better way to troubleshoot clickonce. I'm hoping some tools shipping with Vista will help.

Thanks!

Brian Cecile  Tuesday, September 12, 2006 11:52 AM

You can use google to search for other answers

Custom Search

More Threads

• Windows Installer, ClickOnce or Windows Installer Xml (WIX)
• Visual Studio Installer - insert License Agreement Dialog
• File System Protection
• datadirectory and vb .net
• Proxy settings for clickonce
• COM Registration: RegistrationServices in Custom Action works, "Registration" option with TLB does not
• ClickOnce Hosting
• setup.exe problems...
• Click Once appliction name change
• What happens when I modify my database structure and put out an update?