There is a simple way to bring down your ASP.NET 2.0 application. The only thing you have to do is to create simple html file called App_offline.htm and add it to your ASP.NET 2.0 web application root directory.
After you add this file in your web app, ASP.NET 2.0 runtime stops the application and unloads whole application domain. It stops processing new incomming requests and serves your App_offline.htm file insted. Because whole application domain is unloaded all application files and assemblies are now unlocked and you can make any necessary changes.
When you want to make your web application online, just exclude/delete/rename App_offline.htm file from your web project.
when using App_offline.htm file to temporarily shut down your ASP.NET 2.0 web application. When this file is present, all requests are served with this file and returned with status code 404 Not Found whereas web application pages are only temporarily unavailable, but this status code says they were not found.Search engine spiders would interpret this status code and remove requested page from their search database.
3 comments:
Hi All, Could anyone please help me with this. On the production site app_offline.htm works only till you start uploading dlls. As soon as you start uploading dlls it throws following error"Could not load file or assembly 'SubSonic' or one of its dependencies. The process cannot access the file because it is being used by another process. Now this clearly shows that IIS is still trying to serve the aspx page?? Is there anything I am missing here?? Any help would be appreciated. I have spent hours googling but to no avail. Thanks in advance. Manisha
ITSolusenz departments manage all components web application, software development including, Application Development Company, software development company india, Software Development Services.
The Keshri Software Solutions provides Web Application development,Website Promotions, Search Engine Optimizations services.
we have a very dedicated and hard working team of web application developers(asp.net/c#/sql server/MVC) , Search engine
optimizers. Fast communication and quality delivery product is our commitment.
Please visit : http://ksoftware.co.in/ for more details.
Post a Comment