Loki70

I have a fairly simple application that is being used by about 50 users which I deployed using ClickOnce. The internal users clicked on the "publish" page to install the application and are now starting it by clicking on the icon under Start, All Programs.

I have been regularly publishing updates to this application using VS 2005. I wanted to "force" every update on the users (make them mandatory), so I have been incremeting both the Publish Version and the Minimum Required Version. This seems to work well for 95% of my users - every time the application is run, it checks for a new update, downloads if necessary, and runs the new version.

However, 2 of my users do not get the update right away. When they start the application (as above), I see the "Verifying Application Requirements" dialog but I never see the download dialog box - it just then runs the "old" version. What's really weird is that in a day or two they WILL get the update. I am not sure what the trigger is that causes them to download the update.

All the users have installed the app from the same location and are starting it through the same "application reference" icon created by ClickOnce. Does anyone have any suggestions why just a couple of users would experience this lag in receiving updates

Thanx!



Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Munirul Abedin

Presence of "Verifying ..." dialog would mean it is checking for updates. May be these machines could not reach your server. Are you using beforeApplicationStartup or periodic update check




Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Loki70

Thanks for replying, Munirul.

I thought my problem machines could not reach the server either - except for the fact that they do eventually update (just not right away). I guess I will not have any "proof" that it could not reach the server, as no errror message is diplayed in that scenario (it just starts up the application with whatever version it already has).

I currently have the setting checked for "Before the application starts", which greys out the periodic check. As I understand it, this means "check for updates every time right before application starts". Is that right

Please let me know if you have further suggestions.

Thanx!





Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Munirul Abedin

Next time when an update is released but some machines fails to get it, retrieve the latest ClickOnce logs from those machines. Log is located in WinInet Cache, "\Documents and Settings\<UserName> \Local Settings\Temporary Internet Files" and starts with prefix "System_Deployment_Log". That should have information, why update was not installed.




Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Loki70

Thanks again for replying Munirul.

I can see the files you are referring to, but I cannot open them. When I double-click them nothing happens. I have tried right-clicking and selecting something from the pop-up menu, but my only options are "Open, Open in New Window, Add to Favorites, Copy, Delete, & Properties". I have tried all of these (except Delete, obviously) and cannot read the file's info.

Forgive my ignorance if I am missing something stupid, but how can I read the info in these files

Thanks again for your [continued] help!





Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Munirul Abedin

Copy or drag them to a different folder.




Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Loki70

I published another update and again some of my clients would not update their version. I deleted all the offline content and restarted the computers and still did not receive the update.

As you suggested, I looked at the log files. I found an older one where it DID apply the update, but the newest one had no errors or warnings. The status messages went like this:




Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Munirul Abedin

I am running out of options. ClickOnce tried to see if updates are available, and it could not find any. Check what is the deployment provider location, it may be pointing to a different location than where you put your updates. Try manually downloading the manifest from deployment provider url, to check whether it has updated version. Finally start the app by clicking on the url in IE (not by start menu shortcuts), then find out the log, see whether deployment and deployment provider url matches.




Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Loki70

I finally found a solution - but it wasn't directly related to VS or ClickOnce settings.

I am publishing the ClickOnce application to our local intranet. Apparently we have a proxy server in place that was "storing" a previous view of the application. I noticed this because if users went to the install URL, they would only see the previous version number. Then if they manually hit "refresh" it would display the current (later) version number.

My solution was to change a setting in Internet Options (for IE). Under the "Connections" tab, select "LAN Settings". Then check the checkbox for "Bypass proxy server for local addresses". Once this was done, ClickOnce (and the install URL) imediately saw the updated version.

I am sorry to bug you so much, Menirul, but I learned quite a bit during our discussions. Thanks again for all your help and suggestions!





Re: ClickOnce and Setup & Deployment Projects Clickonce not updating all clients

Itzik Katzav

Hello Guys

Do you know the solution for publishing to the web, when the publish location is not local address but a web address

Thanx Itzik