Click here to Skip to main content
15,887,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I am new in the Visual Studio world. I created a clickonce application. I publish the application, everything looks good, BUT, my application is not getting the updates.

It is reading the manifest, but not updating. I thing it could be because I am not sure What files should be where. I am using a location on my server, so I make sure that the pc has a map drive to this location. What am I missing. I think is something simple but can not figure it out.
Help!! :sigh:
Posted
Updated 14-Aug-21 4:03am

In Project Settings on the Publish Tab, did you put a value in for Installation Folder URL? If so, you need to make sure that you click the Updates button and put the same URL in the Update location box on the Application Updates screen. Also, make sure you have the The application should check for updates box checked on that screen.

If this is not the case, can you please provide some more information about the settings you are using in your ClickOnce setup. Without more information it's hard to narrow down what the problem could be.
 
Share this answer
 
Comments
Kalila 22-Oct-10 13:21pm    
Hello Kschuler,
My publish location is on the F:\XXXXX\AppName\ I have nothing on the Installation Folder URL since it is not different from the above. Now on my update button the update location is \\Server\\XXXXX\AppName
When I make any simple changes to my app to test the update. It reads the manifest but it shows the old program. Is there a time delay, or I am not updating properly.
My Settings:
Install Mode and settings ==> the application is available offline as well
The application should check for updates ==> Before teh application starts
update location same as teh publish location.
What else could help you?
Kschuler 22-Oct-10 13:34pm    
So you make a simple change to your app, and then you publish it again, right? What do you mean by it reads the manifest? Do you get a little popup that says there is an updated version and asks if you want to update it? Or do you see nothing at all?
Kalila 2-Nov-10 14:27pm    
Hello Kschuler,
Sorry but I was out of the country for a week or so. Well I get a manifest popup, it is checking the manifest, but it does not ask me if I want to upgrade. I am not sure what it is checking. I am wondering if I got the files on the right spot.
Kschuler 2-Nov-10 14:58pm    
When you publish the new version are you making sure to increment the Publish Version? I was also curious if you looked at the Code Project Article I suggested below, and if it looks like it could be your problem? My next suggestion would be to add code to the program so that you can see information about the publish and find out more about what is going on. You can research System.Deployment. For example, System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed will tell you if the program has been deployed with ClickOnce. You can also access publish version info and other things. Perhaps checking on those things will help shed some light on the problem, since it can't be debugged.
Kalila 2-Nov-10 16:47pm    
I got it. and you won't believed what it was. On the publish location I was writing F:\xxxx\appname, "F" being a map drive to the server, it seems that using map drives does not work properly, even though they were connected in all the other pc's, Once I changed to the \\Server\xxx\appname ***IT WORS**.
Thank you very much for your help Kschuler. and sorry it was something so dumb.
I found this CodeProject Article[^]. I am not sure if it is related to your issue or not, but figured I'd point it out just in case.
 
Share this answer
 
I have to check The application should check for updates
use ftp on Publish Folder ex ftp://localhost/testinstall/ ,
and use http on Install Folder ex http://localhost:33333/ ,
and in Updates Button > Update Location leave it empty, then update works
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900