ClickOnce Install/Uninstall broken

D

dbxglock

Howdy all,

I have a smart client application that is giving me an error when I try
to install it (error text below). There is an interesting twist though
that is likely causing the error. I recently developed this
application in the hopes of making it a smart client. The server where
the smart client application will be hosted does nto have the .NET 2.0
framework installed. It is not expected to be installed until sometime
next year. In the mean time, it was decided to make a standard windows
installer for it.

Here's where the problems started. The solution has a Windows
Installer project in it. The main project is also configured to be
published as a smart client. It seems that during my testing, I
accidentally installed both the windows installer version and the smart
client version of the application on my computer. When I removed one
of them via the control panel add/remove programs, it broke the
uninstall for the other one. Now I can't install or uninstall the
smart client version of the application. I get the error listed below.
Does anybody have any suggestions on how to remedy this?

Thanks,
Dan

--------------------Error Popup--------------------

"Application cannot be started. Contact the application vendor." [OK]
[Details]

--------------------End Error Popup--------------------

When I click the [Details] button, I get the following information
(relavent information pasted here):

--------------------Begin Log--------------------
APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are
listed later in the log.
* Activation of
http://localhost/proj/Applications/SmartClients/MyApplication/MyApplication.application
resulted in exception. Following failure messages were detected:
+ Shortcuts could not be removed. Try again later.
+ The directory is not empty.


COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [11/21/2005 3:43:25 PM] : Activation of
http://localhost/proj/Applications/SmartClients/MyApplication/MyApplication.application
has started.
* [11/21/2005 3:43:25 PM] : Processing of deployment manifest has
successfully completed.
* [11/21/2005 3:43:25 PM] : Installation of the application has
started.
* [11/21/2005 3:43:26 PM] : Processing of application manifest has
successfully completed.
* [11/21/2005 3:43:28 PM] : Request of trust and detection of
platform is complete.
* [11/21/2005 3:43:29 PM] : Downloading of subscription
dependencies is complete.
* [11/21/2005 3:43:29 PM] : Commit of the downloaded application
has started.

ERROR DETAILS
Following errors were detected during this operation.
* [11/21/2005 3:43:31 PM]
System.Deployment.Application.DeploymentException (InvalidShortcut)
- Shortcuts could not be removed. Try again later.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.ShellExposure.RemoveShortcuts(ShellExposureInformation
shellExposureInformation)
at
System.Deployment.Application.ShellExposure.UpdateShortcuts(SubscriptionState
subState, ShellExposureInformation& shellExposureInformation)
at
System.Deployment.Application.ShellExposure.UpdateSubscriptionShellExposure(SubscriptionState
subState)
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.PerformDeploymentActivation(Uri
activationUri, Boolean isShortcut)
at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object
state)
--- Inner Exception ---
System.IO.IOException
- The directory is not empty.

- Source: mscorlib
- Stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.Directory.DeleteHelper(String fullPath, String
userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String
userPath, Boolean recursive)
at
System.Deployment.Application.ShellExposure.RemoveShortcuts(ShellExposureInformation
shellExposureInformation)
--------------------End Log--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top