We are using ClickOnce to distribute our application. The application is available in offline mode and also the check for updates mode is set to "Before application starts".
Below is the error message that I get when I publish a new version and launch the application from the start menu. I get this error only if I have an earlier version of the same application installed on my machine. If I uninstall the application and install after or try to install the same application on a machine that does have it, it works just fine. So it seems that the problem is mostly related with the update.
I would really appreciate if you can take a look at the error message below and provide you insights.
Thanks,
Murat
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/%UserName%/Application%20Data/Microsoft/Internet%20Explorer/Quick%20Launch/Enigma.appref-ms
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Deployment Provider url: %Provider url%
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\%userName%\Application Data\Microsoft\Internet Explorer\Quick Launch\Enigma.appref-ms resulted in exception. Following failure messages were detected:
+ Activation failed.
+ The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [2/7/2007 9:28:30 AM] : Activation of C:\Documents and Settings\%userName%\Application Data\Microsoft\Internet Explorer\Quick Launch\Enigma.appref-ms has started.
* [2/7/2007 9:28:30 AM] : Performing necessary update check as specified by the deployment.
ERROR DETAILS
Following errors were detected during this operation.
* [2/7/2007 9:28:31 AM] System.Deployment.Application.DeploymentException (Activation)
- Activation failed.
- Source: System.Deployment
- Stack trace:
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)
--- Inner Exception ---
System.IO.FileNotFoundException
- The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
- 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)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.