Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto update asp.net web application from remote server

I have several clients who are using web application hosted in their local IIS server at different locations. Currently all are using version 1.0.

I published the new version of the application say version 1.1, zipped and host in http server at location X.

My application can check if new version is available or not. Now what can be done so that v1.0 at client side can be replaced with new version i.e. 1.1. I want the v1.0 running at client side, automatically (of course with user permission) downloads the v1.1 from http server using internet, extracts the file and host itself in local IIS server.

Is their any method like ClickOnce for web application? I have build the application using asp.net C#. Any 3rd party application or C# code sample would be useful.

like image 935
nightfire001 Avatar asked Mar 10 '15 18:03

nightfire001


People also ask

Is it possible to auto-update a web application?

Not necessarily, click once application can auto-update himself against url from which was downloaded (if newer version is copied on the server with higher assemblies version). I was thinking if such solution could work for web application. I don't think it is a good idea to give your app the privileges to write on the disk.

How do I connect to a remote computer using ASP NET?

Click Attach Open the remote computer's website. In a browser, go to http://<remote computer name>. You should see the ASP.NET web page. In the running ASP.NET application, click the link to the Aboutpage. The breakpoint should be hit in Visual Studio.

How do I get my server operating system automatically updated?

Updates for supported versions of .NET Core 3.1, .NET 5.0 and .NET 6.0 are currently offered to server operating systems via Windows Server Update Services (WSUS) and Microsoft Update Catalog but not the Automatic Updates (AU) channel. You can now get your server operating system automatically updated by opting in for this behavior.

How to configure ASP NET Web site on Windows Server?

Configure the ASP.NET Web site on the Windows Server computer Open Windows Explorer and create a new folder, C:\Publish, where you will later deploy the ASP.NET project.


1 Answers

I came across your question, if you want to make web apps that are self updating, you can check a solution here http://haacked.com/archive/2011/01/15/building-a-self-updating-site-using-nuget.aspx/, as for updating database, you can add a bootsrapper class that if you are using nHibernate use SchemaUpdate(config).Execute(true, true); that you call on site/index to ensure that the schema is updating. hope thats help

like image 59
Ivan Sugiarto Avatar answered Oct 26 '22 18:10

Ivan Sugiarto