Why doesn't my ClickOnce application recognize there is an upgrade the first time I open the application after deploying a new version?
- I deploy a new version of my ClickOnce application
- I open my ClickOnce application on the test client machine
- No upgrade is offered
- I close my ClickOnce application and re-open it and now the upgrade is offered
Why do I have to open, close, and re-open in or开发者_JS百科der to upgrade?
ClickOnce? More like click four times!
What's up with this?
Sounds like your project is set to check for updates 'After the application starts' rather than 'Before your application starts' - check the settings on the Publish tab of the project properties, and click the 'Updates' button.
From http://msdn.microsoft.com/en-us/library/s22azw1e%28v=vs.90%29.aspx
Checking for Updates After Application Startup By using this strategy, the application will attempt to locate and read the deployment manifest file in the background while the application is running. If an update is available, the next time that the user runs the application, he will be prompted to download and install the update.
I would check the xml of the YourAppName.application which will be deployed with the rest of the assemblies, etc, onto the deploy server.
Check the minimumRequiredVersion="1.0.0.0" and make sure that before you publish you get these properties properly set up (I assume you do).
Then, if you serve this app off of a web server, might wanna check if the server is not serving a cached copy YourAppName.application the first time you try running the app.
Good luck!
Try this, remember every time update must change new version.
精彩评论