Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce installation error
 

ClickOnce installation error

Below is the error messages many of my users are encountering when attempting to install a ClickOnce application. This error only occurs for some users. Some users do not experience any issues with the installation.



LATFORM VERSION INFO
Windows : 5.1.2600.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 : http://[MyDomain]/[MyVirtualDirectory]/[AssemblyName].application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://[MyDomain]/[MyVirtualDirectory]/[AssemblyName].application resulted in exception. Following failure messages were detected:

+ Downloading http://[MyDomain]/[MyVirtualDirectory]/[AssemblyName].application did not succeed.
+ Unable to connect to the remote server
+ No connection could be made because the target machine actively refused it

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [5/24/2006 2:23:03 PM] : Activation of http://[MyDomain]/[MyVirtualDirectory]/[AssemblyName].application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [5/24/2006 2:23:04 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://[MyDomain]/[MyVirtualDirectory]/[AssemblyName].application did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)

at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)

at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)

at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)

at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- Unable to connect to the remote server
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Inner Exception ---
System.Net.Sockets.SocketException
- No connection could be made because the target machine actively refused it
- Source: System
- Stack trace:
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.


Curtis G  Thursday, May 25, 2006 4:39 PM

This may be a general connectivity problem not specific to ClickOnce. On client machines thathave this issuehave you triedusing browser toaccess a test file such as .htm on the same server vroot? Does that work?

Regards,
Sameer

Sameer Bhangar - MSFT  Thursday, May 25, 2006 6:45 PM
Yes. The client machines are able to browse to .htm pages at this location. The users who are attempting to install this application must go to a registration page (same site) before get the chance to install. The users can also successfully browse to the publish.htm page.

Any ideas...???

Thanks
Curtis G  Thursday, May 25, 2006 10:36 PM

Hi,

I'm having the same problem.

I tried to connect to a webservice from a desktop application, and it throws this error:

system.net.webexception: Unable to connect to the remote server --> system.net.sockets.socketexception: no connection....."

Anybody knows how to solve this?

Thanks in advance..

Handy Mulia  Friday, June 02, 2006 5:04 AM

Are you checking for security exceptions? Perhaps you are running afoul of a code access restriction on the client. I have run into that and found it to be a root cause when the thrown exception did not indicate that as the problem, since it was a sort of cascaded error or derivative error - e.g. a call back to the server runs intoa security restriction and causes a connection not to be made.

FWIW.

Sincerely,

Buzzby

Buzzby  Friday, June 02, 2006 2:34 PM
This error is occurring during the installation so I am not able to do any exception handling. Are there any server settings (Windows Server 2003, IIS) that could be causing this?
Curtis G  Tuesday, June 06, 2006 8:54 PM

Hi,

I have same problem does any one have solution to resolve this issue?

Nirav Mehta  Thursday, October 19, 2006 1:24 PM

You can use google to search for other answers

Custom Search

More Threads

• Desktop shortcuts - Smartclient app - ClickOnce Deployment
• Cannot run set up of windows service.plz help
• Unattended installation of .NET Framework, MDAC 2.8 & IIS 6.0
• Click Once Setup shows 'unknow publisher' at the time of installation in WPF
• Multi-platform clickonce distribution
• Clickonce really slow deploying netfx30 setups to server 2003 via frontpage extensions
• problem installing .NET Framework
• No access to Add/Remove programs??
• Click Once Problem...
• clickonce issue on vista