Automatically updating asp.net web application from a remote server

I have several clients that use a web application hosted on a local IIS server in different places. Everyone is currently using version 1.0.

I posted a new version of the application, say version 1.1, zipped and host on an http server in location X.

My application can check if a new version is available or not. Now, what can be done so that v1.0 on the client side can be replaced with a new version, that is 1.1. I want v1.0 to work on the client side, automatically (of course, with the permission of the user) downloads v1.1 from the http server using the Internet, retrieves the file and the host itself on the local IIS server.

Is there any method like ClickOnce for a web application? I created an application using asp.net c #. Any third-party application or sample C # code would be helpful.

+6
source share
1 answer

I came across your question, if you want web applications that are self-updating, you can check the solution here http://haacked.com/archive/2011/01/15/building-a-self-updating-site- using-nuget.aspx / , as for updating the database, you can add the bootsrapper class, which, if you use nHibernate, uses SchemaUpdate (config) .Execute (true, true); that you are calling the site / index to make sure the scheme is updated. hope that helps

+2
source

Source: https://habr.com/ru/post/983612/


All Articles