This is an interesting solution, which fitted exactly what i was looking for in one of the Web application product.
The Application for video monitoring and management, is designed to be both on-premise distributable and on-demand hosted model. When we caem across a requirement, to introduce a backup feature, where we have to allow users to backup recorded video in any format (avi/wmv) and also provide an option burn a CD/DVD directly.
This is obviously, a destkop application, but we wanted to have it available in our Web Application for our both On-premise and On-Demand Customers.
Now, with the ClickOnce setup, we have hosted the backup module in a central hosted server, so both links in On-Premsie and On-Demand points to this common server to download the application,. and also the beauty is, the ClickOnce allows to send parameters. So what we did is, once the applicatiion downloaded if not already, will decode the parameter (as it is sent from plain javascript call), and execute a webservice call from this backup module with the parameters received. This parameter tells which server to ask for data to populate.
So when the Backup application is loaded, the application comes from the central hosted server and it is seamless to the user, as after it loads the application, it talks to the server which user is using (either on-preimise or on-demand) to populate the camera details.
