In our ASP.NET MVC application, we have a 'load' button which the user can click to update the current application to its newer version. During the loading of newer version, all the web files are removed and new files are copied back and this process will take 1-2 minutes.
Issue: Since the files are getting removed and replaced back, my application will stuck during the process and throw an exception. Once the files are replaced back, everything works fine after a simple reload. Please give me some suggestions how we can avoid the freezing of the application during the loading process ? (like showing a model popup in between, and once the files are copied back, do a reload, etc). Any ideas/suggestions are welcome. Thanks