Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce deployment not working on some clients
 

ClickOnce deployment not working on some clients

We have a clickonce application that works on the majority of our clients. On one particular client the app downloads about 36% then stops. It eventually times out. In the details it mentions that one of the file is not a valid PE. Also, that the hash does not match. On the clients machine I've tried deleting the app store along with the Deployment registry folder. However, nothing seems to work. What else can I do?

Keep in mind that the app works for the majority of users.
SirModem  Friday, April 10, 2009 5:56 PM
Hi SirModem,

From the information you provided, it seems that the problem is caused by a damaged file. What's the operating system of those non working clients? Do they install any Antispyware which might block downloading certain files?

It would help if you can post all the error log since we may get more information from the entire log.

Best regards,
Bruce Zhou

Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Tuesday, April 14, 2009 5:46 AM

The client is using Windows XP. I've tried disabling their antivirus & firewall but it still doesn't work. The exception is DeploymentDownloadException. It appears to timeout while downloading a particular .dll.deploy file. I've pasted the detail error below:

PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3082
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3082 (QFE.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)

SOURCES
Deployment url: http://www.cogentdatasystems.com/mercerbop/mercerbop.application?mid=520&t=cf500de7-6214-4062-9d30-3b9ade76d495&e=bobt@coastalvalley.com
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Application url: http://www.cogentdatasystems.com/mercerbop/MercerBOP_1_0_2_4/MercerBOP.exe.manifest
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET

IDENTITIES
Deployment Identity: MercerBOP.application, Version=1.0.2.4, Culture=neutral, PublicKeyToken=4e2ed212e51acb69, processorArchitecture=msil
Application Identity: MercerBOP.exe, Version=1.0.2.4, Culture=neutral, PublicKeyToken=4e2ed212e51acb69, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Online only application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://www.cogentdatasystems.com/mercerbop/mercerbop.application?mid=520&t=cf500de7-6214-4062-9d30-3b9ade76d495&e=bobt@coastalvalley.com resulted in exception. Following failure messages were detected:
+ Downloading http://www.cogentdatasystems.com/mercerbop/MercerBOP_1_0_2_4/PdfSharp.dll.deploy did not succeed.
+ The operation has timed out.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [4/13/2009 10:42:11 AM] : Activation of http://www.cogentdatasystems.com/mercerbop/mercerbop.application?mid=520&t=cf500de7-6214-4062-9d30-3b9ade76d495&e=bobt@coastalvalley.com has started.
* [4/13/2009 10:42:12 AM] : Processing of deployment manifest has successfully completed.
* [4/13/2009 10:42:12 AM] : Installation of the application has started.
* [4/13/2009 10:42:12 AM] : Processing of application manifest has successfully completed.
* [4/13/2009 10:42:13 AM] : Request of trust and detection of platform is complete.

ERROR DETAILS
Following errors were detected during this operation.
* [4/13/2009 10:47:25 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://www.cogentdatasystems.com/mercerbop/MercerBOP_1_0_2_4/PdfSharp.dll.deploy 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.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- The operation has timed out.
- Source: System
- Stack trace:
at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

CogentData  Tuesday, April 14, 2009 2:24 PM
Yes, I can see that it's caused by PdfSharp.dll.deploy was not downloaded successfully.

To troubleshoot this problem, please first make sure this file is in the server. Then, try to download the file in the client machine manually, and see if the file can't be downloaded successfully, if not see what happens, and will the system popup a message?

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Wednesday, April 15, 2009 3:35 AM

The file is on the server. I tried downloading it to the clients machine and it downloads about 225k of 480k and the download hangs. I'm sure if I waited long enough it would have given some kind of time out message.

CogentData  Wednesday, April 15, 2009 5:44 PM
Now we have made sure that the file is in the server, and is not damaged since other clients can download it and work well. In addition, we also exclude the possibility that firewall or antispyware blocking the file to be downloaded. Thus, I think the problem may be caused by network issues. I'd like you to verify this by downloading a file other than pdf.dll.deploy file. If the file also can't be downloaded successfully. Then we can infer this is not an issue about clickonce, but the connection between the client and server.


Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Thursday, April 16, 2009 1:54 AM
Hi CogentData,

How's the problem going? Did you test as I suggest? Can you clarify if it's the network issue?


Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Friday, April 17, 2009 9:14 AM

You can use google to search for other answers

Custom Search

More Threads

• ClickOnce per user, but need shared DB file per machine
• Can NOT get VB9 Project to delpoy completely with MS SQL 2005 form Devoloper to Customer site.
• Deployment Registry Editor
• Retrievepath of myPictures Folder
• How to pass parameters to Smart Client applications through URL.
• Installing Services with Clickonce?
• Using dll's Isolated property
• Does ClickOnce uninstall Isolated Storage files?
• Attaching an Icon to an application
• Problem Setting up Prerequisite batch file